summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--default.nix4
1 files changed, 3 insertions, 1 deletions
diff --git a/default.nix b/default.nix
index c6ec47c..d98e8d6 100644
--- a/default.nix
+++ b/default.nix
@@ -82,7 +82,9 @@ let
'';
create.filesystem = q: x: ''
- mkfs.${x.format} ${q.device}
+ mkfs.${x.format} \
+ ${lib.optionalString (!isNull x.extraArgs or null) x.extraArgs} \
+ ${q.device}
'';
create.devices = q: x: let