+5
-2
modules/nixos/services/knot-sync.nix
+5
-2
modules/nixos/services/knot-sync.nix
···
45
config = lib.mkIf cfg.enable {
46
systemd.services.knot-sync = {
47
description = "Sync Knot repositories to GitHub";
48
serviceConfig = {
49
Type = "oneshot";
50
User = "git";
···
183
systemd.timers.knot-sync = {
184
description = "Debounce timer for Knot sync";
185
timerConfig = {
186
-
OnActiveSec = "5s";
187
-
AccuracySec = "1s";
188
};
189
};
190
···
45
config = lib.mkIf cfg.enable {
46
systemd.services.knot-sync = {
47
description = "Sync Knot repositories to GitHub";
48
+
startLimitIntervalSec = 60;
49
+
startLimitBurst = 10;
50
serviceConfig = {
51
Type = "oneshot";
52
User = "git";
···
185
systemd.timers.knot-sync = {
186
description = "Debounce timer for Knot sync";
187
timerConfig = {
188
+
OnActiveSec = "10s";
189
+
AccuracySec = "5s";
190
+
RemainAfterElapse = false;
191
};
192
};
193