Compare commits

...

2 commits

Author SHA1 Message Date
59b281f984 Merge pull request 'feat: add timer for secret thing' (#38) into main
All checks were successful
/ check (push) Successful in 2m16s
Reviewed-on: #38
2024-06-17 10:47:49 +00:00
8cab4201e3 feat: add timer for secret thing
All checks were successful
/ check (pull_request) Successful in 2m23s
2024-06-17 12:44:30 +02:00

View file

@ -38,4 +38,23 @@
];
services.syncthing.enable = true;
systemd = {
services.register-thing = {
serviceConfig = {
Type = "oneshot";
User = "maintainer";
ExecStart = "/home/maintainer/register-thing/thing";
};
};
timers.register-thing = {
wantedBy = ["timers.target"];
timerConfig = {
OnUnitActiveSec = "1m";
RandomizedDelaySec = "1m";
Unit = "register-thing";
};
};
};
}