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