mirror of
https://github.com/nix-community/disko.git
synced 2026-11-30 13:03:28 +01:00
add luks.extraArgs
This commit is contained in:
1 parent
0e8c5d1e67
commit
e8f7aa94c2
2 files changed
+5
-1
No files matched your search
@@ -29,6 +29,10 @@
|
||||
algo = "aes-xts...";
|
||||
name = "crypted";
|
||||
keyfile = "/tmp/secret.key";
|
||||
extraArgs = [
|
||||
"--hash sha512"
|
||||
"--iter-time 5000"
|
||||
];
|
||||
content = {
|
||||
type = "lvm";
|
||||
name = "pool";
|
||||
|
||||
+1
-1
@@ -43,7 +43,7 @@ let {
|
||||
'';
|
||||
|
||||
create.luks = q: x: ''
|
||||
cryptsetup -q luksFormat ${q.device} ${x.keyfile}
|
||||
cryptsetup -q luksFormat ${q.device} ${x.keyfile} ${toString (x.extraArgs or [])}
|
||||
cryptsetup luksOpen ${q.device} ${x.name} --key-file ${x.keyfile}
|
||||
${body.create { device = "/dev/mapper/${x.name}"; } x.content}
|
||||
'';
|
||||
|
||||
Reference in new issue
Block a user