Samuel Shuert | c342a2a | 2024-06-28 19:45:05 -0400 | [diff] [blame] | 1 | { pkgs, ... }: |
Samuel Shuert | d58fbaf | 2024-06-20 21:08:48 -0400 | [diff] [blame] | 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 | |
Samuel Shuert | c342a2a | 2024-06-28 19:45:05 -0400 | [diff] [blame] | 18 | boot.kernelPackages = pkgs.linuxPackages_latest; |
| 19 | |
Samuel Shuert | d58fbaf | 2024-06-20 21:08:48 -0400 | [diff] [blame] | 20 | boot.loader.systemd-boot.enable = true; |
| 21 | boot.loader.efi.canTouchEfiVariables = true; |
| 22 | |
| 23 | boot.initrd = { |
| 24 | systemd.enable = true; # needed for the way we do our YubiKey |
| 25 | luks.devices."key".device = "/dev/disk/by-uuid/a703bd90-d5ff-42fe-b5b7-dfa696d665ca"; |
| 26 | luks.devices."NIXROOT" = { |
| 27 | device = "/dev/disk/by-uuid/0ab9f369-f8a2-4522-bca6-024a5236290c"; |
| 28 | keyFile = "/key:/dev/mapper/key"; |
| 29 | }; |
| 30 | # luks.devices."BACKUPS" = { |
| 31 | # device = "/dev/disk/by-uuid/{FILL_IN}"; |
| 32 | # keyFile = "/key:/dev/mapper/key"; |
| 33 | # }; |
| 34 | }; |
| 35 | } |