blob: c1fafc723ab8a9581a810a058037bb42a40d00ed [file] [log] [blame]
Samuel Shuertc342a2a2024-06-28 19:45:05 -04001{ pkgs, ... }:
Samuel Shuertd58fbaf2024-06-20 21:08:48 -04002{
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 Shuertd58fbaf2024-06-20 21:08:48 -040018 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}