Improve disko snippets
This commit is contained in:
parent
fa5a7fd0e0
commit
4befc47285
8 changed files with 132 additions and 72 deletions
13
disko/libvirt/zfs-encrypted.nix
Normal file
13
disko/libvirt/zfs-encrypted.nix
Normal file
|
@ -0,0 +1,13 @@
|
|||
{ ... }: {
|
||||
disko.devices.zpool.rpool = {
|
||||
rootFsOptions = {
|
||||
encryption = "aes-256-gcm";
|
||||
keyformat = "passphrase";
|
||||
|
||||
keylocation = "prompt";
|
||||
};
|
||||
postCreateHook = ''
|
||||
zfs set keylocation="prompt" rpool
|
||||
'';
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue