auto garbage collect
This commit is contained in:
parent
0ff07ffde9
commit
69459cf910
2 changed files with 13 additions and 1 deletions
|
@ -15,8 +15,9 @@
|
||||||
./roles/desktop.nix
|
./roles/desktop.nix
|
||||||
./roles/dev.nix
|
./roles/dev.nix
|
||||||
./roles/mail.nix
|
./roles/mail.nix
|
||||||
./roles/vpn.nix
|
|
||||||
./roles/network.nix
|
./roles/network.nix
|
||||||
|
./roles/nix.nix
|
||||||
|
./roles/vpn.nix
|
||||||
./roles/work.nix
|
./roles/work.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|
11
roles/nix.nix
Normal file
11
roles/nix.nix
Normal file
|
@ -0,0 +1,11 @@
|
||||||
|
{ config, lib, pkgs, ... }:
|
||||||
|
|
||||||
|
{
|
||||||
|
|
||||||
|
nix.gc = {
|
||||||
|
automatic = true;
|
||||||
|
dates = "weekly";
|
||||||
|
options = "--delete-older-than 30d";
|
||||||
|
};
|
||||||
|
|
||||||
|
}
|
Loading…
Add table
Add a link
Reference in a new issue