[Unit] Description=slopbot Zulip bot After=network-online.target Wants=network-online.target [Service] Type=simple WorkingDirectory=/home/ben/src/bsima/slopbot EnvironmentFile=-/home/ben/src/bsima/slopbot/.env 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=multi-user.target