1
0
Fork 0

Less frequent refreshs

This commit is contained in:
Malte 2023-03-17 16:04:05 +01:00
parent 9b9ad37224
commit 55aea4720e

View file

@ -7,16 +7,16 @@
configGit = "${pkgs.git}/bin/git -C ${configPath}";
in {
systemd.user = {
services.update-config = {
services.refresh-config = {
Unit.Description = "Fetch config repo";
Service = {
Type = "oneshot";
ExecStart = "${configGit} fetch origin main";
};
};
timers.update-config = {
timers.refresh-config = {
Unit.Description = "Fetch config updates";
Timer.OnCalendar = "minutely";
Timer.OnCalendar = "*:0/5:0";
Install.WantedBy = ["timers.target"];
};
};