Samuel Shuert | d58fbaf | 2024-06-20 21:08:48 -0400 | [diff] [blame^] | 1 | { ... }: |
| 2 | { |
| 3 | boot.initrd.availableKernelModules = [ |
| 4 | "nvme" |
| 5 | "xhci_pci" |
| 6 | "ahci" |
| 7 | "usbhid" |
| 8 | "sd_mod" |
| 9 | "ext4" |
| 10 | ]; |
| 11 | boot.initrd.kernelModules = [ |
| 12 | "kvm-amd" |
| 13 | "amdgpu" |
| 14 | ]; |
| 15 | boot.kernelModules = [ ]; |
| 16 | boot.extraModulePackages = [ ]; |
| 17 | |
| 18 | boot.loader.systemd-boot.enable = true; |
| 19 | boot.loader.efi.canTouchEfiVariables = true; |
| 20 | |
| 21 | boot.initrd = { |
| 22 | systemd.enable = true; # needed for the way we do our YubiKey |
| 23 | luks.devices."key".device = "/dev/disk/by-uuid/a703bd90-d5ff-42fe-b5b7-dfa696d665ca"; |
| 24 | luks.devices."NIXROOT" = { |
| 25 | device = "/dev/disk/by-uuid/0ab9f369-f8a2-4522-bca6-024a5236290c"; |
| 26 | keyFile = "/key:/dev/mapper/key"; |
| 27 | }; |
| 28 | # luks.devices."BACKUPS" = { |
| 29 | # device = "/dev/disk/by-uuid/{FILL_IN}"; |
| 30 | # keyFile = "/key:/dev/mapper/key"; |
| 31 | # }; |
| 32 | }; |
| 33 | } |