common: enable sysrq

This commit is contained in:
2025-03-14 22:50:11 +01:00
parent 881c5f3633
commit 80668c0fd3

View File

@@ -205,10 +205,14 @@ in {
Defaults lecture_file = ${sudoLecture} Defaults lecture_file = ${sudoLecture}
''; '';
boot.kernelPackages = lib.mkDefault pkgs.linuxPackages_latest; boot = {
kernelPackages = lib.mkDefault pkgs.linuxPackages_latest;
loader.systemd-boot.memtest86.enable = true;
kernel.sysctl."kernel.sysrq" = 1;
# https://github.com/NixOS/nixpkgs/blob/nixos-24.05/nixos/modules/profiles/hardened.nix # https://github.com/NixOS/nixpkgs/blob/nixos-24.05/nixos/modules/profiles/hardened.nix
boot.blacklistedKernelModules = [ blacklistedKernelModules = [
# Obscure network protocols # Obscure network protocols
"ax25" "ax25"
"netrom" "netrom"
@@ -237,6 +241,7 @@ in {
"sysv" "sysv"
"ufs" "ufs"
]; ];
};
hardware.bluetooth.settings = { hardware.bluetooth.settings = {
General = { General = {