feat: add timer for secret thing
All checks were successful
/ check (pull_request) Successful in 2m23s
All checks were successful
/ check (pull_request) Successful in 2m23s
This commit is contained in:
parent
27b7e295f7
commit
8cab4201e3
1 changed files with 19 additions and 0 deletions
|
@ -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";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue