Samuel Shuert | 02ffd1e | 2024-02-13 21:37:15 -0500 | [diff] [blame] | 1 | { ... }: |
| 2 | { |
| 3 | boot.initrd.availableKernelModules = [ |
| 4 | "nvme" |
| 5 | "xhci_pci" |
| 6 | "ahci" |
Samuel Shuert | 02ffd1e | 2024-02-13 21:37:15 -0500 | [diff] [blame] | 7 | "usbhid" |
| 8 | "sd_mod" |
Samuel Shuert | 13df4cf | 2024-03-06 17:54:25 -0500 | [diff] [blame] | 9 | "ext4" |
Samuel Shuert | 02ffd1e | 2024-02-13 21:37:15 -0500 | [diff] [blame] | 10 | ]; |
Samuel Shuert | 659b564 | 2024-02-23 20:47:43 +0000 | [diff] [blame] | 11 | boot.initrd.kernelModules = [ |
| 12 | "kvm-amd" |
| 13 | "amdgpu" |
| 14 | ]; |
Samuel Shuert | 02ffd1e | 2024-02-13 21:37:15 -0500 | [diff] [blame] | 15 | boot.kernelModules = [ ]; |
| 16 | boot.extraModulePackages = [ ]; |
| 17 | |
Samuel Shuert | e1ff100 | 2024-02-20 21:07:13 +0000 | [diff] [blame] | 18 | boot.loader.systemd-boot.enable = true; |
| 19 | boot.loader.efi.canTouchEfiVariables = true; |
| 20 | |
Samuel Shuert | 02ffd1e | 2024-02-13 21:37:15 -0500 | [diff] [blame] | 21 | boot.initrd = { |
Samuel Shuert | 13df4cf | 2024-03-06 17:54:25 -0500 | [diff] [blame] | 22 | systemd.enable = true; # needed for the way we do our YubiKey |
| 23 | luks.devices."key".device = "/dev/disk/by-uuid/3ddef258-93b2-459c-9420-121b0631d69a"; |
| 24 | luks.devices."NIXROOT" = { |
| 25 | device = "/dev/disk/by-uuid/744c83f8-f8d9-4604-8e44-ceb7bf7fdf87"; |
| 26 | keyFile = "/key:/dev/mapper/key"; |
| 27 | }; |
| 28 | luks.devices."BIGDATA" = { |
| 29 | device = "/dev/disk/by-uuid/640b7c00-5cfa-472f-9338-c7adafa9ea6a"; |
| 30 | keyFile = "/key:/dev/mapper/key"; |
| 31 | }; |
Samuel Shuert | 02ffd1e | 2024-02-13 21:37:15 -0500 | [diff] [blame] | 32 | }; |
| 33 | } |