nixos: add nh and use it's gc
This commit is contained in:
parent
122997fb82
commit
9c5008a965
14
nixos.nix
14
nixos.nix
|
@ -24,11 +24,15 @@
|
||||||
"flakes"
|
"flakes"
|
||||||
];
|
];
|
||||||
|
|
||||||
# Enable automatic garbage collection.
|
# Enable nh, a bundle of CLI utilities for NixOS
|
||||||
nix.gc = {
|
programs.nh = {
|
||||||
automatic = true;
|
enable = true;
|
||||||
dates = "weekly";
|
|
||||||
options = "--delete-older-than 1w";
|
# Enable automatic garbage collection.
|
||||||
|
clean.enable = true;
|
||||||
|
clean.extraArgs = "--keep-since 4d --keep 3";
|
||||||
|
|
||||||
|
flake = "/home/wizardlink/.system";
|
||||||
};
|
};
|
||||||
|
|
||||||
# Optimize storage
|
# Optimize storage
|
||||||
|
|
Loading…
Reference in a new issue