nixos/systems/gerg-desktop/parrot.nix
Gerg-L f7adbbcc4e updated parrot
and removed old mining module
2023-03-08 20:03:31 -05:00

20 lines
447 B
Nix

_: {
pkgs,
config,
...
}: {
#discord bot stuff
systemd.services.parrot = {
enable = true;
wantedBy = ["multi-user.target"];
wants = ["network-online.target"];
after = ["network-online.target"];
script = "${pkgs.parrot}/bin/parrot";
serviceConfig = {
EnvironmentFile = config.sops.secrets.discordenv.path;
Restart = "on-failure";
RestartSec = "30s";
};
};
sops.secrets.discordenv = {};
}