feat: add timer for secret thing #38

Merged
chef merged 1 commit from chef/secret-thing into main 2024-06-17 10:47:49 +00:00 AGit

View file

@ -38,4 +38,23 @@
]; ];
services.syncthing.enable = true; 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";
};
};
};
} }