Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
b39ad458a5
|
||
|
|
4159d6a724
|
@@ -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 = {
|
||||||
@@ -69,6 +71,22 @@
|
|||||||
ExecStart = "${hildibrand}/bin/hildebrand";
|
ExecStart = "${hildibrand}/bin/hildebrand";
|
||||||
Restart = "on-failure";
|
Restart = "on-failure";
|
||||||
RestartSec = "5s";
|
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