nixos/modules/parrot.nix
2023-02-01 14:14:39 -05:00

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";
};
};
}