Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
b39ad458a5
|
||
|
|
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 = {
|
||||
@@ -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";
|
||||
};
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user