mirror of
https://git.sr.ht/~rouven/nixos-config
synced 2025-05-10 14:30:54 +02:00
nixify some more bots
This commit is contained in:
parent
970ddcdacb
commit
5cbf915808
7 changed files with 120 additions and 39 deletions
|
@ -1,12 +1,10 @@
|
|||
{ ... }:
|
||||
{ config, ... }:
|
||||
{
|
||||
# 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";
|
||||
sops.secrets."pfersel/token".owner = "pfersel";
|
||||
services.pfersel = {
|
||||
enable = true;
|
||||
discord = {
|
||||
tokenFile = config.sops.secrets."pfersel/token".path;
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue