diff --git a/common.nix b/common.nix index d7a5dbe..310fa5b 100644 --- a/common.nix +++ b/common.nix @@ -116,6 +116,10 @@ busybox ]; + # Hard-link identical files in the store as new paths are added, so the + # store de-duplicates itself on every build instead of drifting. + nix.settings.auto-optimise-store = true; + # Offload builds to the media server. Excluded on the server itself to # avoid a pointless SSH round-trip to localhost. nix.distributedBuilds =