add garbage collection to nixos hosts

This commit is contained in:
Yan Lin 2026-02-10 08:14:00 +01:00
parent 2cbfad36f0
commit 75ee874788
2 changed files with 14 additions and 0 deletions

View file

@ -21,6 +21,13 @@
efiSupport = true; efiSupport = true;
efiInstallAsRemovable = true; efiInstallAsRemovable = true;
zfsSupport = true; zfsSupport = true;
configurationLimit = 10;
};
nix.gc = {
automatic = true;
dates = "monthly";
options = "--delete-older-than 30d";
}; };
# Disable systemd stage-1 (use traditional initrd for ZFS compatibility) # Disable systemd stage-1 (use traditional initrd for ZFS compatibility)

View file

@ -16,6 +16,13 @@
systemd-boot.configurationLimit = 50; systemd-boot.configurationLimit = 50;
efi.canTouchEfiVariables = true; efi.canTouchEfiVariables = true;
timeout = 3; timeout = 3;
configurationLimit = 10;
};
nix.gc = {
automatic = true;
dates = "monthly";
options = "--delete-older-than 30d";
}; };
# Use latest kernel for better hardware support # Use latest kernel for better hardware support