From e4836108d51a4339983c0f88fb4e995e4109bb21 Mon Sep 17 00:00:00 2001 From: lassulus Date: Thu, 25 Aug 2022 21:46:48 +0200 Subject: create.filesystem: support extraArgs --- default.nix | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'default.nix') 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 -- cgit v1.2.3