diff options
Diffstat (limited to 'modules/software/boot/default.nix')
| -rw-r--r-- | modules/software/boot/default.nix | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/modules/software/boot/default.nix b/modules/software/boot/default.nix new file mode 100644 index 0000000..0798849 --- /dev/null +++ b/modules/software/boot/default.nix @@ -0,0 +1,29 @@ +{ pkgs, ... }: +{ + imports = [ + ./grub.nix + ./systemd-boot.nix + ]; + + boot = { + tmp.cleanOnBoot = true; + crashDump.enable = false; + consoleLogLevel = 3; + kernelPackages = pkgs.linuxPackages_zen; + + kernelParams = [ + "iommu=pt" + "threadirqs" + ]; + + loader = { + timeout = 1; + generationsDir.copyKernels = true; + + efi = { + canTouchEfiVariables = true; + efiSysMountPoint = "/boot"; + }; + }; + }; +} |