feat(nix): switch from nix.settings.auto-optimise-store to nix.optimise

This runs optimisation periodically instead of during builds.
This commit is contained in:
Felix Schröter 2025-07-21 14:05:55 +02:00
parent e3680c4bf4
commit 62b6d12d3e
Signed by: felschr
GPG key ID: 671E39E6744C807D

View file

@ -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;
};