1
0
Fork 0

Enable hourly maintenance

This commit is contained in:
Malte Brandy 2021-07-09 00:27:52 +02:00
parent 77841f0ace
commit 80e1a78b0f
No known key found for this signature in database
GPG key ID: 226A2D41EF5378C9
2 changed files with 18 additions and 0 deletions

View file

@ -135,6 +135,7 @@ in
./roles/games.nix
./roles/git-sign.nix
./roles/hoogle.nix
./roles/hourly-maintenance.nix
./roles/kassandra.nix
./roles/khal.nix
./roles/khard.nix

View file

@ -0,0 +1,17 @@
{ pkgs, config, ... }:
{
systemd.user = {
services.maintenance = {
Unit.Description = "Routine maintenance";
Service = {
Type = "oneshot";
ExecStart = "${config.home.profileDirectory}/bin/maintenance --only-on-update";
};
};
timers.maintenance = {
Unit.Description = "Hourly maintenance";
Timer.OnCalendar = "hourly";
Install.WantedBy = [ "timers.target" ];
};
};
}