summaryrefslogtreecommitdiffstats
path: root/makefu/2configs/bureautomation/kalauerbot.nix
blob: d61b8885e061127c071c531b894d4323a950e78b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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;
    };
  };
}