Compare commits

...
2 Commits
Author SHA1 Message Date
wymiller b39ad458a5 mod: added env files to systemd services 2026-08-12 22:31:44 -04:00
wymiller 4159d6a724 mod: add caitsith bot to systemd services 2026-08-12 22:10:41 -04:00
@@ -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 = {
@@ -69,6 +71,22 @@
ExecStart = "${hildibrand}/bin/hildebrand";
Restart = "on-failure";
RestartSec = "5s";
EnvironmentFile = "/etc/secrets/hildibrand.env";
};
};
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";
EnvironmentFile = "/etc/secrets/caitsith.env";
};
};