mirror of
https://git.sr.ht/~rouven/nixos-config
synced 2024-11-15 13:23:11 +01:00
13 lines
312 B
Nix
13 lines
312 B
Nix
|
{ ... }:
|
||
|
{
|
||
|
# 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";
|
||
|
};
|
||
|
};
|
||
|
}
|