nixos/hosts/gerg-desktop/services/parrot.nix
2024-05-21 17:35:42 -04:00

26 lines
509 B
Nix

{ _file }:
{
pkgs,
config,
lib,
...
}:
{
sops.secrets.discordenv = { };
systemd.services.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";
};
};
inherit _file;
}