Compare commits

...

3 commits

Author SHA1 Message Date
willifan
fefa12b881 added automatic nix-store optimisation 2024-07-06 23:24:55 +02:00
willifan
d4f3f586c6 added automatic garbage collect 2024-07-06 23:21:02 +02:00
willifan
fe70a62430 added autoupdate 2024-07-06 23:09:27 +02:00
4 changed files with 32 additions and 0 deletions

View file

@ -0,0 +1,11 @@
{ pkgs, ... }:
{
system.autoUpgrade = {
enable = true;
dates = "04:00";
flake = "https://git.huwe.mooo.com/willifan/nix-config.git";
persistent = true;
randomizedDelaySec = "5min";
fixedRandomDelay = true;
};
}

View file

@ -1,4 +1,9 @@
{ pkgs, ... }:
{
imports = [
./autoupdate.nix
./garbage-collect.nix
./optimise.nix
];
system.stateVersion = "23.11";
}

View file

@ -0,0 +1,9 @@
{ pkgs, ... }:
{
nix.gc = {
automatic = true;
dates = "04:30";
persistent = true;
options = "--delete-older-than 10d";
};
}

View file

@ -0,0 +1,7 @@
{ pkgs, ... }:
{
nix.optimise = {
automatic = true;
dates = [ "05:00" ];
};
}