From aae021010b5ee755fff5bf2d5a8332d86bdc1c83 Mon Sep 17 00:00:00 2001 From: caley Date: Fri, 29 May 2026 17:29:10 +0200 Subject: Add Nix garbage collection configuration Configure Nix garbage collection settings for automatic weekly cleanup. --- nixos/configuration.nix | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'nixos') diff --git a/nixos/configuration.nix b/nixos/configuration.nix index ff558f1..69f8e15 100644 --- a/nixos/configuration.nix +++ b/nixos/configuration.nix @@ -8,6 +8,12 @@ nix.settings.experimental-features = [ "nix-command" "flakes" ]; nix.settings.auto-optimise-store = true; + nix.gc = { + automatic = true; + dates = "weekly"; + options = "--delete-older-than 7d"; + }; + boot.loader.grub = { enable = true; device = "/dev/nvme0n1"; @@ -21,6 +27,7 @@ }; services.getty.autologinUser = "silly"; + services.fstrim.enable = true; networking.hostName = "cat"; networking.networkmanager.enable = true; -- cgit v1.3.1