diff options
| author | caley <u65487754@gmail.com> | 2026-05-29 17:29:10 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-05-29 17:29:10 +0200 |
| commit | aae021010b5ee755fff5bf2d5a8332d86bdc1c83 (patch) | |
| tree | 2354bffa7219d5559a2ad9eb2e1ae31a73fa288b /nixos | |
| parent | 5ffa053678636cc167e5d57893d0b2dadd8bff08 (diff) | |
Add Nix garbage collection configuration
Configure Nix garbage collection settings for automatic weekly cleanup.
Diffstat (limited to 'nixos')
| -rw-r--r-- | nixos/configuration.nix | 7 |
1 files changed, 7 insertions, 0 deletions
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; |
