mlaga97-nix/disko/libvirt/zfs-encrypted.nix

14 lines
249 B
Nix

{ ... }: {
disko.devices.zpool.rpool = {
rootFsOptions = {
encryption = "aes-256-gcm";
keyformat = "passphrase";
keylocation = "prompt";
};
postCreateHook = ''
zfs set keylocation="prompt" rpool
'';
};
}