diff --git a/configuration.nix b/configuration.nix index 56d994e..f17424e 100644 --- a/configuration.nix +++ b/configuration.nix @@ -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.