From 43e64ddd912fc60df7041d7d6cb25c05c008efda Mon Sep 17 00:00:00 2001 From: ltadeu6 Date: Wed, 1 Apr 2026 09:11:50 -0300 Subject: [PATCH] Enable automatic GC and store optimisation --- nixos/configuration.nix | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/nixos/configuration.nix b/nixos/configuration.nix index 39fc02c..635db88 100644 --- a/nixos/configuration.nix +++ b/nixos/configuration.nix @@ -463,6 +463,12 @@ in { system.autoUpgrade.enable = true; + nix.gc = { + automatic = true; + dates = "weekly"; + options = "--delete-older-than 14d"; + }; + systemd.services."getty@tty1".enable = false; systemd.services."autovt@tty1".enable = false; @@ -471,6 +477,7 @@ in { # nixpkgs.config.cudaSupport = true; nix.settings.experimental-features = [ "nix-command" "flakes" ]; + nix.settings.auto-optimise-store = true; environment.systemPackages = with pkgs; [ most