mirror of
https://github.com/smg1024/homelab.git
synced 2026-05-22 20:32:58 +09:00
add nix garbage collection module
This commit is contained in:
parent
ea767d86e0
commit
9730520879
1 changed files with 13 additions and 1 deletions
|
|
@ -1 +1,13 @@
|
||||||
# TODO: Define garbage collection settings.
|
{ ... }:
|
||||||
|
|
||||||
|
{
|
||||||
|
nix.gc = {
|
||||||
|
automatic = true;
|
||||||
|
dates = "weekly";
|
||||||
|
options = "--delete-older-than 14d";
|
||||||
|
};
|
||||||
|
|
||||||
|
nix.optimise.automatic = true;
|
||||||
|
|
||||||
|
boot.tmp.cleanOnBoot = true;
|
||||||
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue