mirror of
https://github.com/Gerg-L/nixos.git
synced 2025-12-10 08:53:56 -05:00
18 lines
416 B
Nix
18 lines
416 B
Nix
{
|
|
pkgs,
|
|
settings,
|
|
...
|
|
}: {
|
|
#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 = "/home/${settings.username}/parrot/.env";
|
|
};
|
|
};
|
|
}
|