mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-06-05 21:03:40 +00:00
nixos/lib/make-single-disk-zfs-image: use structuredAttrs instead of passAsFile
This commit is contained in:
@@ -209,12 +209,12 @@ let
|
||||
};
|
||||
}) mountable;
|
||||
};
|
||||
passAsFile = [ "filesystems" ];
|
||||
__structuredAttrs = true;
|
||||
}
|
||||
''
|
||||
(
|
||||
echo "builtins.fromJSON '''"
|
||||
jq . < "$filesystemsPath"
|
||||
printf "%s" "$filesystems" | jq .
|
||||
echo "'''"
|
||||
) > $out
|
||||
|
||||
|
||||
Reference in New Issue
Block a user