Add garabage collection

This commit is contained in:
2026-01-31 12:07:33 +01:00
parent 4a6b9c67d0
commit 8f2633c115
2 changed files with 13 additions and 0 deletions

View File

@@ -11,6 +11,7 @@
../modules/programs.nix ../modules/programs.nix
../modules/gaming.nix ../modules/gaming.nix
../modules/obs-studio.nix ../modules/obs-studio.nix
../modules/garbage-collection.nix
]; ];
boot.loader.systemd-boot.enable = true; boot.loader.systemd-boot.enable = true;

View File

@@ -0,0 +1,12 @@
{ config, pkgs, ... }:
{
nix = {
settings.auto-optimise-store = true;
gc = {
automatic = true;
dates = "weekly";
options = "--delete-older-than 7d";
};
};
}