Automate garbage collection with deleting old versions so we don't run out of space again

This commit is contained in:
benjamin melançon 2025-04-24 13:07:44 -04:00
parent 16d452ccf9
commit 6f9523372d

View file

@ -180,6 +180,13 @@
boot.loader.systemd-boot.enable = true;
boot.loader.efi.canTouchEfiVariables = true;
# Garbage collection - via https://discourse.nixos.org/t/no-space-left-on-boot/24019/8
nix.gc = {
automatic = true;
randomizedDelaySec = "14m";
options = "--delete-older-than 60d";
};
networking.hostName = "nixos"; # Define your hostname.
# networking.wireless.enable = true; # Enables wireless support via wpa_supplicant.