Kieran's opinionated (and probably slightly dumb) nix config

chore: use debounce timer for knot sync

dunkirk.sh efbd4b92 3bdf0bd1

verified
+9 -1
+9 -1
modules/nixos/services/knot-sync.nix
··· 180 }; 181 }; 182 183 systemd.paths.knot-sync = { 184 description = "Watch for new Knot repositories"; 185 wantedBy = [ "multi-user.target" ]; 186 pathConfig = { 187 PathModified = cfg.repoDir; 188 - Unit = "knot-sync.service"; 189 MakeDirectory = true; 190 }; 191 };
··· 180 }; 181 }; 182 183 + systemd.timers.knot-sync = { 184 + description = "Debounce timer for Knot sync"; 185 + timerConfig = { 186 + OnActiveSec = "5s"; 187 + AccuracySec = "1s"; 188 + }; 189 + }; 190 + 191 systemd.paths.knot-sync = { 192 description = "Watch for new Knot repositories"; 193 wantedBy = [ "multi-user.target" ]; 194 pathConfig = { 195 PathModified = cfg.repoDir; 196 + Unit = "knot-sync.timer"; 197 MakeDirectory = true; 198 }; 199 };