add luks setup to vulkan

This commit is contained in:
Bit Borealis 2023-03-29 06:45:22 +00:00
parent eadd387894
commit 73b58a4789
Signed by: theotheroracle
GPG Key ID: 2D816A2DCA6E5649
2 changed files with 14 additions and 0 deletions

View File

@ -2,5 +2,6 @@
{
imports = [
./hardware-configuration.nix
./luks.nix
];
}

13
luks.nix Normal file
View File

@ -0,0 +1,13 @@
{ ... }:
{
# init keyfile
boot.initrd.secrets = {
"/crypto_keyfile.bin" = null;
};
# enable swap on luks
boot.initrd.luks.devices."luks-4130c26c-7546-42e9-9d61-8f112e244460".device =
"/dev/disk/by-uuid/4130c26c-7546-42e9-9d61-8f112e244460";
boot.initrd.luks.devices."luks-4130c26c-7546-42e9-9d61-8f112e244460".keyFile =
"/crypto_keyfile.bin"
}