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