mirror of
https://github.com/nix-community/disko.git
synced 2026-11-30 13:03:28 +01:00
Add extra args into swap.
This commit is contained in:
1 parent
6133a16d68
commit
91af5b4a53
1 file changed
+8
-1
+8
-1
@@ -11,6 +11,11 @@
|
||||
default = device;
|
||||
description = "Device";
|
||||
};
|
||||
extraArgs = lib.mkOption {
|
||||
type = lib.types.listOf lib.types.str;
|
||||
default = [ ];
|
||||
description = "Extra arguments";
|
||||
};
|
||||
randomEncryption = lib.mkOption {
|
||||
type = lib.types.bool;
|
||||
default = false;
|
||||
@@ -35,7 +40,9 @@
|
||||
_create = diskoLib.mkCreateOption {
|
||||
inherit config options;
|
||||
default = ''
|
||||
mkswap ${config.device}
|
||||
mkswap \
|
||||
${toString config.extraArgs} \
|
||||
${config.device}
|
||||
'';
|
||||
};
|
||||
_mount = diskoLib.mkMountOption {
|
||||
|
||||
Reference in new issue
Block a user