luks: use allowDiscards option

This commit is contained in:
Felix Buehler authored and mergify[bot] committed 2023-11-04 12:09:41 +00:00
1 parent 944d338d24
commit 548962c50b
4 files changed
+17 -11

No files matched your search

+2 -1
View File
@@ -62,6 +62,7 @@ in
keyFileSize = 2048;
keyFileOffset = 1024;
fallbackToPassword = true;
allowDiscards = true;
};
'';
};
@@ -86,7 +87,7 @@ in
type = lib.types.listOf lib.types.str;
default = [ ];
description = "Extra arguments to pass to `cryptsetup luksOpen` when opening";
example = [ "--allow-discards" ];
example = [ "--timeout 10" ];
};
content = diskoLib.deviceType { parent = config; device = "/dev/mapper/${config.name}"; };
_parent = lib.mkOption {