diff options
author | makefu <github@syntax-fehler.de> | 2021-09-05 21:52:47 +0200 |
---|---|---|
committer | makefu <github@syntax-fehler.de> | 2021-09-05 21:52:47 +0200 |
commit | e0c5b3f187310cae8f5ad0abb2e92d5aa79e94db (patch) | |
tree | 7ac1bcbc47fd3ba3405c724becd848d8e718afbe /krebs/2configs/shack/reaktor.nix | |
parent | 7cf2e992f7eb1b90549a80f1a6526f0518d0298b (diff) |
puyak.r: announce doorstatus
Diffstat (limited to 'krebs/2configs/shack/reaktor.nix')
-rw-r--r-- | krebs/2configs/shack/reaktor.nix | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/krebs/2configs/shack/reaktor.nix b/krebs/2configs/shack/reaktor.nix index 40c121299..a31c7a687 100644 --- a/krebs/2configs/shack/reaktor.nix +++ b/krebs/2configs/shack/reaktor.nix @@ -16,4 +16,15 @@ } ]; }; + systemd.services.announce_doorstatus = { + startAt = "*:0/1"; + path = with pkgs; [ curl jq ]; + script = builtins.readFile ./doorstatus.sh; + serviceConfig = { + DynamicUser = true; + StateDirectory = "doorstatus"; + WorkingDirectory = "/var/lib/doorstatus"; + PrivateTmp = true; + }; + }; } |