Less frequent refreshs
This commit is contained in:
parent
9b9ad37224
commit
55aea4720e
|
@ -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"];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue