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