diff options
author | makefu <github@syntax-fehler.de> | 2020-09-16 22:23:16 +0200 |
---|---|---|
committer | makefu <github@syntax-fehler.de> | 2020-09-16 22:23:16 +0200 |
commit | 8c72529821612e524f6d5657815b579e7db44110 (patch) | |
tree | 397b3858c60645c8299505fd610e20c67b3436a9 | |
parent | 3d1ea50ee3baeec195c8c223e92f70ca78da9b50 (diff) |
ma bam/kalauerbot: init
-rw-r--r-- | 2configs/bureautomation/kalauerbot.nix | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/2configs/bureautomation/kalauerbot.nix b/2configs/bureautomation/kalauerbot.nix new file mode 100644 index 000000000..d61b8885e --- /dev/null +++ b/2configs/bureautomation/kalauerbot.nix @@ -0,0 +1,17 @@ +{ config, lib, pkgs, ... }: + +{ + systemd.services.kalauerbot = { + description = "Kalauerbot"; + after = [ "network-online.target" ]; + wantedBy = [ "multi-user.target" ]; + environment = import <secrets/bureautomation/citadel.nix>; + serviceConfig = { + DynamicUser = true; + StateDirectory = "kalauerbot"; + WorkingDirectory = "/var/lib/kalauerbot"; + ExecStart = "${pkgs.kalauerbot}/bin/kalauerbot"; + PrivateTmp = true; + }; + }; +} |