mirror of
https://github.com/nix-community/disko
synced 2024-11-10 06:14:14 +00:00
Add extra args into swap.
This commit is contained in:
parent
6133a16d68
commit
91af5b4a53
1 changed files with 8 additions and 1 deletions
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue