Skip to content

Commit a8ea148

Browse files
committed
discard store path references in disk image
for images we don't want nix to scan our image for refernnces
1 parent a601711 commit a8ea148

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

lib/make-disk-image.nix

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,10 @@ in
125125
inherit preVM QEMU_OPTS;
126126
postVm = cfg.extraPostVM;
127127
inherit (diskoCfg) memSize;
128+
129+
__structuredAttrs = true;
130+
# We don't want nix to pick up any references to the store paths for images
131+
unsafeDiscardReferences.out = true;
128132
}
129133
(partitioner + installer));
130134

0 commit comments

Comments
 (0)