add another discord bot

This commit is contained in:
Rouven Seifert 2023-05-31 17:35:28 +02:00
parent 0359c7cc0c
commit 627fe030cb
Signed by: rouven.seifert
GPG key ID: B95E8FE6B11C4D09
4 changed files with 30 additions and 15 deletions

View file

@ -8,6 +8,7 @@
./modules/mail
./modules/networks
./modules/nginx
./modules/pfersel
./modules/purge
./modules/trucksimulatorbot
];
@ -36,6 +37,7 @@
htop-vim
helix
lsof
python3
];
programs.git = {
enable = true;

View file

@ -0,0 +1,12 @@
{ ... }:
{
# currently quite ugly and stateful. #todo nixify
systemd.services.pfersel = {
after = [ "network-online.target" ];
wantedBy = [ "multi-user.target" ];
serviceConfig = {
WorkingDirectory = "/root/Pfersel";
ExecStart = "/root/Pfersel/venv/bin/python3 bot.py";
};
};
}