nixos: gc

This commit is contained in:
Maciej Jur 2024-06-09 23:54:32 +02:00
parent a39e13373b
commit 15fd8c5da0
Signed by: kamov
GPG key ID: 191CBFF5F72ECAFD

View file

@ -18,6 +18,20 @@ in
boot.loader.systemd-boot.enable = true;
boot.loader.efi.canTouchEfiVariables = true;
# Nix package installer settings
nix = {
settings = {
# Collapse duplicates into a single hard-link during build
auto-optimise-store = true;
};
gc = {
# Automatically delete old objects and generations
automatic = true;
dates = "daily";
options = "--delete-older-than +5";
};
};
networking.hostName = "nixos"; # Define your hostname.
# Pick only one of the below networking options.
# networking.wireless.enable = true; # Enables wireless support via wpa_supplicant.