Compact the nix store

This commit is contained in:
TEC 2022-09-20 00:56:45 +08:00
parent 5433872625
commit 6bd8e7bedb
Signed by: tec
SSH Key Fingerprint: SHA256:eobz41Mnm0/iYWBvWThftS0ElEs1ftBr6jamutnXc/A
1 changed files with 8 additions and 0 deletions

View File

@ -18,6 +18,14 @@
experimental-features = nix-command flakes
'';
gc = {
automatic = true;
dates = "weekly";
options = "--delete-older-than 30d";
};
settings.auto-optimise-store = true;
# from flake-utils-plus
# Sets NIX_PATH to follow this flake's nix inputs
# So legacy nix-channel is not needed