all: Move gc into own module
This commit is contained in:
parent
55606b41cc
commit
3d47947a05
7
modules/gc.nix
Normal file
7
modules/gc.nix
Normal file
|
@ -0,0 +1,7 @@
|
|||
{
|
||||
nix.gc = {
|
||||
automatic = true;
|
||||
dates = "weekly";
|
||||
options = "--delete-older-than 30d";
|
||||
};
|
||||
}
|
|
@ -21,6 +21,7 @@ in
|
|||
../modules/borgbackup.nix
|
||||
../modules/udisks2.nix
|
||||
../modules/samba.nix
|
||||
../modules/gc.nix
|
||||
|
||||
../secrets/remote-builder.nix
|
||||
../users/fleaz.nix
|
||||
|
@ -51,15 +52,10 @@ in
|
|||
|
||||
console.font = consoleFont config.my.highDPI;
|
||||
|
||||
nix.gc = {
|
||||
automatic = true;
|
||||
dates = "weekly";
|
||||
options = "--delete-older-than 30d";
|
||||
};
|
||||
|
||||
# weekly trim
|
||||
services.fstrim.enable = true;
|
||||
|
||||
|
||||
networking.extraHosts = ''
|
||||
'';
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue