mod: add caitsith bot to systemd services
This commit is contained in:
@@ -5,6 +5,7 @@
|
|||||||
...
|
...
|
||||||
}: let
|
}: let
|
||||||
hildibrand = nur.packages.${pkgs.stdenv.hostPlatform.system}.hildibrand;
|
hildibrand = nur.packages.${pkgs.stdenv.hostPlatform.system}.hildibrand;
|
||||||
|
caitsith = nur.packages.${pkgs.stdenv.hostPlatform.system}.caitsith;
|
||||||
in {
|
in {
|
||||||
imports = [
|
imports = [
|
||||||
../../pwrMgmt
|
../../pwrMgmt
|
||||||
@@ -56,6 +57,7 @@
|
|||||||
|
|
||||||
environment.systemPackages = [
|
environment.systemPackages = [
|
||||||
hildibrand
|
hildibrand
|
||||||
|
caitsith
|
||||||
];
|
];
|
||||||
|
|
||||||
systemd.services.hildibrand = {
|
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
|
# Add username to groups "wheel" and "video" - more may be added here later
|
||||||
users = {
|
users = {
|
||||||
users = {
|
users = {
|
||||||
|
|||||||
Reference in New Issue
Block a user