Skip to content

Commit 020fb60

Browse files
committed
use --local when copying entire store to cache
else we refresh the entire stores registrationTime which isn't cool
1 parent 46dbad8 commit 020fb60

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

environments/modules/gc.nix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
# Copy everything to cache
3737
CACHE_ENABLED="''${CACHE_ENABLED:-false}"
3838
if test "$CACHE_ENABLED" = "true"; then
39-
nix copy --all --to ssh-ng://nix@nix-cache || true
39+
nix copy --all --store local --to ssh-ng://nix@nix-cache || true
4040
fi
4141
# Garbage collect anything older than an hour
4242
nix path-info --store local --all --json | \

0 commit comments

Comments
 (0)