mirror of
https://github.com/Gerg-L/nixos.git
synced 2025-12-10 00:43:56 -05:00
21 lines
500 B
Nix
21 lines
500 B
Nix
_: {
|
|
pkgs,
|
|
config,
|
|
...
|
|
}: {
|
|
#discord bot stuff
|
|
systemd.services.parrot = {
|
|
enable = true;
|
|
path = with pkgs; [parrot yt-dlp ffmpeg];
|
|
wantedBy = ["multi-user.target"];
|
|
wants = ["NetworkManager-wait-online.service"];
|
|
after = ["NetworkManager-wait-online.service"];
|
|
script = "parrot";
|
|
serviceConfig = {
|
|
EnvironmentFile = config.sops.secrets.discordenv.path;
|
|
Restart = "on-failure";
|
|
RestartSec = "30s";
|
|
};
|
|
};
|
|
sops.secrets.discordenv = {};
|
|
}
|