blob: 0ef8a71b45900fa1957c9bd451fc9f4bfeb260fb [file] [log] [blame]
Samuel Shuert02ffd1e2024-02-13 21:37:15 -05001{ ... }:
2{
3 boot.loader.systemd-boot.enable = true;
4 boot.loader.efi.canTouchEfiVariables = true;
5
6 boot.initrd.availableKernelModules = [
7 "xhci_pci"
8 "thunderbolt"
9 "nvme"
10 "uas"
11 "usbhid"
12 "sd_mod"
13 "ext4"
14 ];
15 boot.initrd.kernelModules = [ ];
16 boot.kernelModules = [ "kvm-intel" ];
17 boot.extraModulePackages = [ ];
18
19 boot.initrd.systemd.enable = true; # needed for the way we do our YubiKey
20 boot.initrd.luks.devices."key".device = "/dev/disk/by-label/KEY";
21
22 boot.initrd.luks.devices."luks-expansion0" = {
23 device = "/dev/disk/by-label/EXPANSION0";
24 keyFile = "/key:/dev/mapper/key";
25 };
26 boot.initrd.luks.devices."luks-ssd0" = {
27 device = "/dev/disk/by-label/SSD0";
28 keyFile = "/key:/dev/mapper/key";
29 };
30}