diff --git a/modules/machine/estinien/configuration.nix b/modules/machine/estinien/configuration.nix index f93bd45..d1f728b 100644 --- a/modules/machine/estinien/configuration.nix +++ b/modules/machine/estinien/configuration.nix @@ -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 = {