mirror of
https://github.com/nix-community/disko.git
synced 2026-12-02 05:53: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;
|
default = device;
|
||||||
description = "Device";
|
description = "Device";
|
||||||
};
|
};
|
||||||
|
extraArgs = lib.mkOption {
|
||||||
|
type = lib.types.listOf lib.types.str;
|
||||||
|
default = [ ];
|
||||||
|
description = "Extra arguments";
|
||||||
|
};
|
||||||
randomEncryption = lib.mkOption {
|
randomEncryption = lib.mkOption {
|
||||||
type = lib.types.bool;
|
type = lib.types.bool;
|
||||||
default = false;
|
default = false;
|
||||||
@@ -35,7 +40,9 @@
|
|||||||
_create = diskoLib.mkCreateOption {
|
_create = diskoLib.mkCreateOption {
|
||||||
inherit config options;
|
inherit config options;
|
||||||
default = ''
|
default = ''
|
||||||
mkswap ${config.device}
|
mkswap \
|
||||||
|
${toString config.extraArgs} \
|
||||||
|
${config.device}
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
_mount = diskoLib.mkMountOption {
|
_mount = diskoLib.mkMountOption {
|
||||||
|
|||||||
Reference in new issue
Block a user