nixos: gc
This commit is contained in:
parent
a39e13373b
commit
15fd8c5da0
|
@ -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.
|
||||
|
|
Loading…
Reference in a new issue