re-enable parrot and move settings file from /data/settings

This commit is contained in:
Gerg-L 2024-04-21 15:01:57 -04:00
parent ee88f6d9d8
commit 3f0c37fcb7
Signed by: gerg-l
SSH key fingerprint: SHA256:FPYDHIkvMocr4wdmZXpgpJjsb2Tw6rASs2ISPbOb0KI

View file

@ -7,12 +7,16 @@ _:
}:
{
sops.secrets.discordenv = { };
systemd.services.parrot = {
#wantedBy = [ "multi-user.target" ];
#wants = [ "network-online.target" ];
#after = [ "network-online.target" ];
script = lib.getExe pkgs.parrot;
wantedBy = [ "multi-user.target" ];
wants = [ "network-online.target" ];
after = [ "network-online.target" ];
environment.SETTINGS_PATH = "/persist/services/parrot";
serviceConfig = {
ExecStart = lib.getExe pkgs.parrot;
EnvironmentFile = config.sops.secrets.discordenv.path;
Restart = "on-failure";
RestartSec = "30s";