nixos/lib/make-{single,multi}-disk-zfs-image: use structuredAttrs instead of passAsFile (#515828)

This commit is contained in:
Maximilian Bosch
2026-05-14 17:59:40 +00:00
committed by GitHub
2 changed files with 4 additions and 4 deletions

View File

@@ -221,12 +221,12 @@ let
};
}) mountable;
};
passAsFile = [ "filesystems" ];
__structuredAttrs = true;
}
''
(
echo "builtins.fromJSON '''"
jq . < "$filesystemsPath"
printf "%s" "$filesystems" | jq .
echo "'''"
) > $out

View File

@@ -209,12 +209,12 @@ let
};
}) mountable;
};
passAsFile = [ "filesystems" ];
__structuredAttrs = true;
}
''
(
echo "builtins.fromJSON '''"
jq . < "$filesystemsPath"
printf "%s" "$filesystems" | jq .
echo "'''"
) > $out