add auto nix gc on servers
This commit is contained in:
parent
5c709f9a5d
commit
70babab8ec
1 changed files with 16 additions and 0 deletions
|
|
@ -90,6 +90,22 @@
|
||||||
roles.default.extraModules = [ self.nixosModules.common ];
|
roles.default.extraModules = [ self.nixosModules.common ];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
server-config = {
|
||||||
|
module = {
|
||||||
|
input = "clan-core";
|
||||||
|
name = "importer";
|
||||||
|
};
|
||||||
|
roles.default.tags.server = { };
|
||||||
|
roles.default.extraModules = [
|
||||||
|
{
|
||||||
|
nix.gc.automatic = true;
|
||||||
|
nix.gc.dates = "Mon 3:15";
|
||||||
|
nix.gc.randomizedDelaySec = "30min";
|
||||||
|
nix.gc.options = "--delete-older-than 30d";
|
||||||
|
}
|
||||||
|
];
|
||||||
|
};
|
||||||
|
|
||||||
"garage" = {
|
"garage" = {
|
||||||
module.input = "clan-core";
|
module.input = "clan-core";
|
||||||
module.name = "garage";
|
module.name = "garage";
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue