blob: 3b1c25aac07f3803ad40ddc4497ffda7a05802e9 [file] [log] [blame]
Samuel Shuert02ffd1e2024-02-13 21:37:15 -05001{ ... }:
2{
3 boot.initrd.availableKernelModules = [
4 "nvme"
5 "xhci_pci"
6 "ahci"
Samuel Shuert02ffd1e2024-02-13 21:37:15 -05007 "usbhid"
8 "sd_mod"
Samuel Shuert13df4cf2024-03-06 17:54:25 -05009 "ext4"
Samuel Shuert02ffd1e2024-02-13 21:37:15 -050010 ];
Samuel Shuert659b5642024-02-23 20:47:43 +000011 boot.initrd.kernelModules = [
12 "kvm-amd"
13 "amdgpu"
14 ];
Samuel Shuert02ffd1e2024-02-13 21:37:15 -050015 boot.kernelModules = [ ];
16 boot.extraModulePackages = [ ];
17
Samuel Shuerte1ff1002024-02-20 21:07:13 +000018 boot.loader.systemd-boot.enable = true;
19 boot.loader.efi.canTouchEfiVariables = true;
20
Samuel Shuert02ffd1e2024-02-13 21:37:15 -050021 boot.initrd = {
Samuel Shuert13df4cf2024-03-06 17:54:25 -050022 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 Shuert02ffd1e2024-02-13 21:37:15 -050032 };
33}