turn all extraArgs into lists

This commit is contained in:
lassulus 2023-02-14 09:58:37 +01:00
parent 7585a30385
commit 6d630b8fe4
5 changed files with 16 additions and 16 deletions

View file

@ -22,8 +22,8 @@
description = "LVM type";
};
extraArgs = lib.mkOption {
type = lib.types.str;
default = "";
type = lib.types.listOf lib.types.str;
default = [ ];
description = "Extra arguments";
};
content = diskoLib.partitionType;
@ -43,7 +43,7 @@
${if lib.hasInfix "%" config.size then "-l" else "-L"} ${config.size} \
-n ${config.name} \
${lib.optionalString (config.lvm_type != null) "--type=${config.lvm_type}"} \
${config.extraArgs} \
${toString config.extraArgs} \
${vg}
${lib.optionalString (config.content != null) (config.content._create {dev = "/dev/${vg}/${config.name}";})}
'';