blob: 0be620867616c24e4a5f5538f8945f0dd4775667 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
[Unit]
Description=slopbot Zulip bot
After=network-online.target
Wants=network-online.target
[Service]
Type=simple
WorkingDirectory=/home/ben/src/bsima/slopbot
Environment=PATH=/run/current-system/sw/bin
EnvironmentFile=-/home/ben/src/bsima/slopbot/.env
# The Nix wrapper resets PATH to the slopbot-agent-tools package before invoking Python.
# Agent shell commands can then resolve only the tools packaged for slopbot, e.g. slop-search/slop-fetch.
ExecStart=/run/current-system/sw/bin/nix --extra-experimental-features 'nix-command flakes' run /home/ben/src/bsima/slopbot#slopbot
Restart=on-failure
RestartSec=5
NoNewPrivileges=true
CapabilityBoundingSet=
LockPersonality=true
PrivateDevices=true
ProtectClock=true
ProtectControlGroups=true
ProtectKernelLogs=true
ProtectKernelModules=true
ProtectKernelTunables=true
RestrictAddressFamilies=AF_UNIX AF_INET AF_INET6
RestrictNamespaces=true
RestrictRealtime=true
SystemCallArchitectures=native
[Install]
WantedBy=default.target
|