diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/default.nix | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/default.nix b/lib/default.nix index 16da93d..49c9daa 100644 --- a/lib/default.nix +++ b/lib/default.nix @@ -94,9 +94,9 @@ let { # attrValues returns values sorted by name. This is important, because it # ensures that "/" is processed before "/foo" etc. in '' - ${concatStringsSep "\n" (attrValues z.luks)} - ${concatStringsSep "\n" (attrValues z.lvm)} - ${concatStringsSep "\n" (attrValues z.fs)} + ${optionalString (hasAttr "luks" z) concatStringsSep "\n" (attrValues z.luks)} + ${optionalString (hasAttr "lvm" z) concatStringsSep "\n" (attrValues z.lvm)} + ${optionalString (hasAttr "luks" fs) concatStringsSep "\n" (attrValues z.fs)} ''; mount.luks = q: x: ( |