mirror of
https://github.com/gburd/nix-config.git
synced 2024-11-14 00:26:24 +00:00
15 lines
434 B
Nix
15 lines
434 B
Nix
{ config, ... }:
|
|
let hostname = config.networking.hostName;
|
|
in {
|
|
boot.initrd = {
|
|
# Enable swap on luks
|
|
luks.devices."luks-3b6dddfd-5390-441f-a72d-a3b2809204df".device = "/dev/disk/by-uuid/3b6dddfd-5390-441f-a72d-a3b2809204df";
|
|
|
|
# Setup encrypted root keyfile
|
|
luks.devices."luks-3b6dddfd-5390-441f-a72d-a3b2809204df".keyFile = "/crypto_keyfile.bin";
|
|
secrets = {
|
|
"/crypto_keyfile.bin" = null;
|
|
};
|
|
};
|
|
|
|
}
|