summaryrefslogtreecommitdiff
path: root/modules/system/boot/default.nix
blob: c2238c0b40272d5c5faf76e64abb05f1e08051fd (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
{ pkgs, ... }:
{
  imports = [
    ./grub.nix
    ./systemd-boot.nix
  ];

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

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

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

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