common/nix: auto optimise, auto gc

This commit is contained in:
Oystein Kristoffer Tveit 2025-03-13 15:03:06 +01:00
parent bbaf7eb9e2
commit 583db61b3f
Signed by: oysteikt
GPG Key ID: 9F2F7D8250F35146

View File

@ -17,7 +17,6 @@
settings = {
allow-dirty = true;
allowed-uris = [ "http://" "https://" ];
auto-optimise-store = true;
binary-caches = [ "https://cache.nixos.org/" ];
builders-use-substitutes = true;
experimental-features = [ "nix-command" "flakes" ];
@ -30,6 +29,9 @@
!include ${config.sops.secrets."nix/access-tokens".path}
'';
optimise.automatic = true;
gc.automatic = true;
registry = {
home.to = {
type = "path";