summaryrefslogtreecommitdiff
path: root/modules/system/boot/default.nix
blob: bafbabb795c5ea3898b651876b5e1210356250aa (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
{
  pkgs,
  ...
}:
{
  imports = [
    ./grub.nix
    ./systemd-boot.nix
  ];

  boot = {
    crashDump.enable = false;
    consoleLogLevel = 3;
    kernelPackages = pkgs.linuxPackages_zen;

    kernelParams = [
      "iommu=pt"
      "threadirqs"
    ];

    loader = {
      timeout = 5;
      generationsDir.copyKernels = true;

      efi = {
        canTouchEfiVariables = true;
        efiSysMountPoint = "/boot";
      };
    };
  };
}