mirror of
https://github.com/nix-community/disko.git
synced 2026-12-02 05:53:28 +01:00
luks: use allowDiscards option
This commit is contained in:
1 parent
944d338d24
commit
548962c50b
4 files changed
+17
-11
No files matched your search
+2
-1
@@ -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 {
|
||||
|
||||
Reference in new issue
Block a user