From 841dbc5bfc35fcb3cd965f5706b1bae948953be8 Mon Sep 17 00:00:00 2001 From: emptyynes Date: Wed, 24 Sep 2025 17:05:50 +0700 Subject: [PATCH] added nix optimizations --- servers/common/main.nix | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/servers/common/main.nix b/servers/common/main.nix index 22be3fe..36bc6b9 100644 --- a/servers/common/main.nix +++ b/servers/common/main.nix @@ -11,6 +11,19 @@ ]; programs.fish.enable = true; - nix.settings.experimental-features = [ "nix-command" "flakes" ]; - nix.settings.trusted-users = [ "root" "@wheel" ]; + nix = { + settings = { + experimental-features = [ "nix-command" "flakes" ]; + trusted-users = [ "root" "@wheel" ]; + auto-optimise-store = true; + }; + optimise = { + automatic = true; + dates = [ "weekly" ]; + }; + gc = { + automatic = true; + dates = "weekly"; + }; + }; } \ No newline at end of file