aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorlassulus <lassulus@lassul.us>2018-09-11 21:14:10 +0200
committerlassulus <lassulus@lassul.us>2018-09-11 21:14:10 +0200
commit52b077dabb8e0085c394fad364587a18fab34f00 (patch)
treea008a3d919037f25e9a67873998babb66e976db2
parent88f56a0b644dd7bfa8438409bea5377adef6aef4 (diff)
mount.devices: fix attribute not found errorprism/fix
-rw-r--r--lib/default.nix6
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: (