mod: add caitsith bot to systemd services
This commit is contained in:
@@ -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 = {
|
||||
|
||||
Reference in New Issue
Block a user