Skip to content

Commit

Permalink
discard store path references in disk image
Browse files Browse the repository at this point in the history
for images we don't want nix to scan our image for refernnces
  • Loading branch information
Mic92 committed Dec 5, 2024
1 parent 9b1fef6 commit d7ef4a8
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/make-disk-image.nix
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,10 @@ in
inherit preVM QEMU_OPTS;
postVm = cfg.extraPostVM;
inherit (diskoCfg) memSize;

__structuredAttrs = true;
# We don't want nix to pick up any references to the store paths for images
unsafeDiscardReferences.out = true;
}
(partitioner + installer));

Expand Down

0 comments on commit d7ef4a8

Please sign in to comment.