From 62b6d12d3ee0c2727feb5bc36e6b25936c4f9f77 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Felix=20Schr=C3=B6ter?= Date: Mon, 21 Jul 2025 14:05:55 +0200 Subject: [PATCH] feat(nix): switch from nix.settings.auto-optimise-store to nix.optimise This runs optimisation periodically instead of during builds. --- system/nix.nix | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/system/nix.nix b/system/nix.nix index 36fa247..70e7eb3 100644 --- a/system/nix.nix +++ b/system/nix.nix @@ -18,6 +18,10 @@ in nixpkgs.config.allowUnfree = true; + nix.optimise = { + automatic = true; + }; + nix.gc = { automatic = true; dates = "04:00"; @@ -26,7 +30,6 @@ in nix.settings = { trusted-users = [ "@wheel" ]; - auto-optimise-store = true; substituters = nixConfig.extra-substituters; trusted-public-keys = nixConfig.extra-trusted-public-keys; };