From f2bd4e9e52765d555693d8ad6538ae3e511854df Mon Sep 17 00:00:00 2001 From: rope Date: Wed, 3 Jun 2026 17:17:00 +0100 Subject: [PATCH] nix: enable auto-optimise-store Co-Authored-By: Claude Opus 4.8 --- common.nix | 4 ++++ 1 file changed, 4 insertions(+) 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 =