optional string brackets

This commit is contained in:
makefu 2018-09-11 22:47:42 +02:00
parent 60bda6019f
commit 969d4e1f6a
No known key found for this signature in database
GPG Key ID: 36F7711F3FC0F225

View File

@ -94,9 +94,9 @@ let {
# attrValues returns values sorted by name. This is important, because it
# ensures that "/" is processed before "/foo" etc.
in ''
${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)}
${optionalString (hasAttr "luks" z) (concatStringsSep "\n" (attrValues z.luks))}
${optionalString (hasAttr "lvm" z) (concatStringsSep "\n" (attrValues z.lvm))}
${optionalString (hasAttr "luks" z) (concatStringsSep "\n" (attrValues z.fs))}
'';
mount.luks = q: x: (