mount.devices: fix attribute not found error

This commit is contained in:
lassulus 2018-09-11 21:14:10 +02:00
parent 88f56a0b64
commit 52b077dabb

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 ''
${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: (