blob: 360a866ec31f9b3a3b3fa0c61932ed9f392c4f79 [file] [log] [blame]
PineaFan44e98082024-04-20 20:52:29 +01001{ config, ... }:
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 ];
14 boot.extraModulePackages = with config.boot.kernelPackages; [ v4l2loopback ];
15 boot.kernelModules = [
16 "nvidia"
17 "v4l2loopback"
18 ];
19 boot.kernel.sysctl."kernel.sysrq" = 1;
20
21 boot.loader.systemd-boot.enable = true;
22 boot.loader.efi.canTouchEfiVariables = true;
23
24 boot.initrd = {
25 systemd.enable = true; # Needed for the way we do our YubiKey
26 luks.devices."key".device = "/dev/disk/by-uuid/f3547d7f-707e-4b17-a22b-d31b6af0a67a";
27 luks.devices."MAIN" = { # NVME, main storage, boot, etc (1TB)
28 device = "/dev/disk/by-uuid/5183512d-92c1-4272-a746-8518ff7cde4b";
29 keyFile = "/key:/dev/mapper/key";
30 };
31 luks.devices."LFS" = { # PS3 HDD (0.5TB)
32 device = "/dev/disk/by-uuid/2c636fd7-c664-46f7-986d-448d3ed60d28";
33 keyFile = "/key:/dev/mapper/key";
34 };
35 # Commenting this out as it's the drive that's running while I'm writing the config
36 # luks.devices."BACKUP" = { # HDD (1TB)
37 # device = "/dev/disk/by-uuid/CHANGE_ME";
38 # keyFile = "/key:/dev/mapper/key";
39 # };
40 };
41}