mirror of
https://github.com/Gerg-L/nixos.git
synced 2025-12-10 00:43:56 -05:00
22 lines
478 B
Nix
22 lines
478 B
Nix
{
|
|
pkgs,
|
|
config,
|
|
self,
|
|
lib,
|
|
...
|
|
}: {
|
|
#discord bot stuff
|
|
systemd.services.parrot = {
|
|
enable = true;
|
|
wantedBy = ["multi-user.target"];
|
|
wants = ["network-online.target"];
|
|
after = ["network-online.target"];
|
|
script = lib.getExe self.packages.${pkgs.system}.parrot;
|
|
serviceConfig = {
|
|
EnvironmentFile = config.sops.secrets.discordenv.path;
|
|
Restart = "on-failure";
|
|
RestartSec = "30s";
|
|
};
|
|
};
|
|
sops.secrets.discordenv = {};
|
|
}
|