Skip to content

Commit

Permalink
nixos-modules/microvm/store-disk: use writeClosure over writeReferenc…
Browse files Browse the repository at this point in the history
…esToFile
  • Loading branch information
astro committed Jun 26, 2024
1 parent 49d0333 commit a2dbaa2
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion nixos-modules/microvm/store-disk.nix
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@ let
# "-Ededupe"
]
);

writeClosure = pkgs.writeClosure or pkgs.writeReferencesToFile;

in
{
options.microvm = with lib; {
Expand Down Expand Up @@ -65,7 +68,7 @@ in
echo Copying a /nix/store
mkdir store
for d in $(sort -u ${
lib.concatMapStringsSep " " pkgs.writeReferencesToFile (
lib.concatMapStringsSep " " writeClosure (
lib.optionals config.microvm.storeOnDisk (
[ config.system.build.toplevel ]
++
Expand Down

0 comments on commit a2dbaa2

Please sign in to comment.