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