mod: add caitsith bot to systemd services

This commit is contained in:
2026-08-12 22:10:41 -04:00
parent d7a2d4cf38
commit 4159d6a724
@@ -5,6 +5,7 @@
...
}: let
hildibrand = nur.packages.${pkgs.stdenv.hostPlatform.system}.hildibrand;
caitsith = nur.packages.${pkgs.stdenv.hostPlatform.system}.caitsith;
in {
imports = [
../../pwrMgmt
@@ -56,6 +57,7 @@
environment.systemPackages = [
hildibrand
caitsith
];
systemd.services.hildibrand = {
@@ -72,6 +74,20 @@
};
};
systemd.services.caitsith = {
description = "Caitsith - a randomizer bot";
wantedBy = [ "multi-user.target" ];
after = [ "network.target" ];
serviceConfig = {
Type = "simple";
User = userName;
WorkingDirectory = "/home/${userName}";
ExecStart = "${caitsith}/bin/hildebrand";
Restart = "on-failure";
RestartSec = "5s";
};
};
# Add username to groups "wheel" and "video" - more may be added here later
users = {
users = {