Add luks passfile

This commit is contained in:
Jakob Lechner 2024-02-29 17:49:08 +00:00
parent 24fe88e338
commit b7ddc8fb50
2 changed files with 11 additions and 1 deletions

View file

@ -112,7 +112,14 @@ with lib; {
"net.ipv6.conf.all.forwarding" = 1;
};
initrd = {
availableKernelModules = [ "ahci" ];
availableKernelModules = [
"ahci"
"ehci_pci"
"sd_mod"
"sdhci_pci"
"usb_storage"
"xhci_pci"
];
systemd.enable = true;
luks.devices = lib.listToAttrs (
map
@ -121,6 +128,9 @@ with lib; {
value = {
device = "${devNodes}${dev}${partitionScheme.luksDev}";
allowDiscards = true;
keyFileSize = 4096;
keyFile = "/dev/disk/by-id/usb-jalr_RAM_Mass_Storage_DE6270431F6F342C-0:0";
keyFileTimeout = 5;
};
})
disks

Binary file not shown.