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