blob: 6278aff66d59e7298dcc80f980147610b98eadd5 [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 = [
PineaFan44e98082024-04-20 20:52:29 +010016 "v4l2loopback"
17 ];
18 boot.kernel.sysctl."kernel.sysrq" = 1;
19
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/f3547d7f-707e-4b17-a22b-d31b6af0a67a";
26 luks.devices."MAIN" = { # NVME, main storage, boot, etc (1TB)
27 device = "/dev/disk/by-uuid/5183512d-92c1-4272-a746-8518ff7cde4b";
28 keyFile = "/key:/dev/mapper/key";
29 };
30 luks.devices."LFS" = { # PS3 HDD (0.5TB)
31 device = "/dev/disk/by-uuid/2c636fd7-c664-46f7-986d-448d3ed60d28";
32 keyFile = "/key:/dev/mapper/key";
33 };
34 # Commenting this out as it's the drive that's running while I'm writing the config
35 # luks.devices."BACKUP" = { # HDD (1TB)
36 # device = "/dev/disk/by-uuid/CHANGE_ME";
37 # keyFile = "/key:/dev/mapper/key";
38 # };
39 };
40}