summaryrefslogtreecommitdiff
path: root/modules/pc/software/boot/default.nix
blob: a8ed47123f028c64bfe1512f5cc2743f7d14fb77 (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 = {
    tmp.cleanOnBoot = true;
    crashDump.enable = false;
    consoleLogLevel = 3;
    kernelPackages = pkgs.linuxPackages_zen;
    initrd.systemd.enable = true;
    supportedFilesystems = [ "ntfs" ];

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

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

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