mirror of
https://github.com/Gerg-L/nixos.git
synced 2025-12-10 00:43:56 -05:00
changed discord bot from docker container to systemd service
This commit is contained in:
parent
e1987d6461
commit
257c6102ff
9 changed files with 67 additions and 50 deletions
|
|
@ -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
|
||||
'';
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue