changed discord bot from docker container to systemd service

This commit is contained in:
ISnortPennies 2023-01-19 20:40:22 -05:00
parent e1987d6461
commit 257c6102ff
9 changed files with 67 additions and 50 deletions

View file

@ -48,12 +48,24 @@
fsType = "vfat";
};
};
virtualisation.docker.enable = true;
#discord bot stuff
virtualisation.docker.enable = false;
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/${username}/parrot/.env";
};
};
#mining stuff
systemd.services.mining = {
enable = false;
path = with pkgs; [ t-rex-miner afk-cmds st zsh dbus xmrig ];
wantedBy = [ "graphical.target" ];
wants = [ "graphical.target" ];
script = ''
afk-cmds -c /home/${username}/afk-cmds.json
'';