diff options
author | lassulus <lassulus@lassul.us> | 2022-08-25 21:46:48 +0200 |
---|---|---|
committer | lassulus <lassulus@lassul.us> | 2022-08-25 23:31:05 +0200 |
commit | e4836108d51a4339983c0f88fb4e995e4109bb21 (patch) | |
tree | e3ca3fcba3e7c4edabc1a02194339d003a7b4ad3 | |
parent | 81e704b638a8a7158bd9106b7fd592fb982d1864 (diff) |
create.filesystem: support extraArgs
-rw-r--r-- | default.nix | 4 |
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 |