summaryrefslogtreecommitdiff
path: root/sif/boot.nix
blob: 00d42b995f34037759a126ef8cb8485ba27493f9 (plain)
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
{ config, lib, pkgs, ... }:

{
  boot = {
    initrd = {
      luks.devices = [
        { name = "nvm0"; device = "/dev/disk/by-uuid/fe641e81-0812-4181-a5f6-382ebba509bb"; }
        { name = "nvm1"; device = "/dev/disk/by-uuid/43df1ba8-1728-4193-8855-920a82d4494a"; }
      ];
      kernelModules = [ "dm-snapshot" ];
      availableKernelModules = [ "fbcon" "xhci_pci" "nvme" "usb_storage" "sd_mod" "rtsx_pci_sdmmc" ];
    };
  };


  # Use the systemd-boot EFI boot loader.
  loader = {
    systemd-boot.enable = true;
    efi.canTouchEfiVariables = true;
    timeout = null;
  };

  plymouth.enable = true;

  kernelParams = [ "intel_pstate=no_hwp" "quiet" ];
}