all: Move gc into own module

This commit is contained in:
fleaz 2023-06-25 01:08:10 +02:00
parent 55606b41cc
commit 3d47947a05
2 changed files with 9 additions and 6 deletions

7
modules/gc.nix Normal file
View file

@ -0,0 +1,7 @@
{
nix.gc = {
automatic = true;
dates = "weekly";
options = "--delete-older-than 30d";
};
}

View file

@ -21,6 +21,7 @@ in
../modules/borgbackup.nix ../modules/borgbackup.nix
../modules/udisks2.nix ../modules/udisks2.nix
../modules/samba.nix ../modules/samba.nix
../modules/gc.nix
../secrets/remote-builder.nix ../secrets/remote-builder.nix
../users/fleaz.nix ../users/fleaz.nix
@ -51,15 +52,10 @@ in
console.font = consoleFont config.my.highDPI; console.font = consoleFont config.my.highDPI;
nix.gc = {
automatic = true;
dates = "weekly";
options = "--delete-older-than 30d";
};
# weekly trim # weekly trim
services.fstrim.enable = true; services.fstrim.enable = true;
networking.extraHosts = '' networking.extraHosts = ''
''; '';
} }