add garbage collection to nixos hosts
This commit is contained in:
parent
2cbfad36f0
commit
75ee874788
2 changed files with 14 additions and 0 deletions
|
|
@ -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)
|
||||||
|
|
|
||||||
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue