2020-09-16 20:23:16 +00:00
|
|
|
{ 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;
|
2020-11-16 20:31:17 +00:00
|
|
|
|
|
|
|
Restart = "always";
|
|
|
|
RuntimeMaxSec = "12h";
|
2020-09-16 20:23:16 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|