default: set hardened kernel as default
This commit is contained in:
parent
78b56c7bf4
commit
f23aae085a
@ -100,6 +100,8 @@ in {
|
|||||||
'';
|
'';
|
||||||
boot.cleanTmpDir = true;
|
boot.cleanTmpDir = true;
|
||||||
|
|
||||||
|
boot.kernelPackages = lib.mkDefault pkgs.linuxPackages_hardened;
|
||||||
|
|
||||||
environment.systemPackages = with pkgs; [
|
environment.systemPackages = with pkgs; [
|
||||||
age
|
age
|
||||||
apg
|
apg
|
||||||
|
@ -96,8 +96,6 @@ in {
|
|||||||
boot.loader.systemd-boot.enable = true;
|
boot.loader.systemd-boot.enable = true;
|
||||||
boot.loader.efi.canTouchEfiVariables = true;
|
boot.loader.efi.canTouchEfiVariables = true;
|
||||||
|
|
||||||
boot.kernelPackages = pkgs.linuxPackages_hardened;
|
|
||||||
|
|
||||||
doas.enable = true;
|
doas.enable = true;
|
||||||
|
|
||||||
networking.hostName = "box";
|
networking.hostName = "box";
|
||||||
|
@ -57,7 +57,6 @@ in {
|
|||||||
efiSysMountPoint = "/boot/efi";
|
efiSysMountPoint = "/boot/efi";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
kernelPackages = pkgs.linuxPackages_hardened;
|
|
||||||
kernelParams = [ "boot.shell_on_fail" "mem_sleep_default=deep" ];
|
kernelParams = [ "boot.shell_on_fail" "mem_sleep_default=deep" ];
|
||||||
kernelModules = [ "kvm-intel" ];
|
kernelModules = [ "kvm-intel" ];
|
||||||
};
|
};
|
||||||
|
@ -14,8 +14,6 @@ in {
|
|||||||
boot.loader.systemd-boot.enable = true;
|
boot.loader.systemd-boot.enable = true;
|
||||||
boot.loader.efi.canTouchEfiVariables = true;
|
boot.loader.efi.canTouchEfiVariables = true;
|
||||||
|
|
||||||
boot.kernelPackages = pkgs.linuxPackages_hardened;
|
|
||||||
|
|
||||||
boot.supportedFilesystems = [ "zfs" ];
|
boot.supportedFilesystems = [ "zfs" ];
|
||||||
boot.zfs.devNodes = "/dev/";
|
boot.zfs.devNodes = "/dev/";
|
||||||
|
|
||||||
|
@ -33,7 +33,6 @@ in {
|
|||||||
boot.loader.grub.version = 2;
|
boot.loader.grub.version = 2;
|
||||||
boot.loader.grub.device = "/dev/sda";
|
boot.loader.grub.device = "/dev/sda";
|
||||||
|
|
||||||
boot.kernelPackages = pkgs.linuxPackages_hardened;
|
|
||||||
boot.kernelParams = [ "net.ifnames=0" ];
|
boot.kernelParams = [ "net.ifnames=0" ];
|
||||||
|
|
||||||
tailscale.sshOnly = true;
|
tailscale.sshOnly = true;
|
||||||
|
@ -29,7 +29,6 @@ in {
|
|||||||
"/crypto_keyfile.bin";
|
"/crypto_keyfile.bin";
|
||||||
secrets = { "/crypto_keyfile.bin" = null; };
|
secrets = { "/crypto_keyfile.bin" = null; };
|
||||||
};
|
};
|
||||||
kernelPackages = pkgs.linuxPackages_hardened;
|
|
||||||
kernelParams = [ "intel_idle.max_cstate=4" ];
|
kernelParams = [ "intel_idle.max_cstate=4" ];
|
||||||
|
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user