useful extra things re: trivial unit files fur systemd
WorkingDirectory=/path/to/desired/working/directory
; if your script picks up configs from the current directory this will make setup simplerUser=username
, in the same sectionEnvironment="ENV_VAR=whatever"
lines as required under that same sectionEnvironmentFile=/path/to/file
; the syntax is in VAR="contents"
furmat)unsolicited suggestion re: useful extra things re: trivial unit files fur systemd
@MindmeshLink an arguable cheat is ExecStart=fish -c "[whatever the venv command is, i furget]; exec [final command]
. i think that should work
useful extra things re: trivial unit files fur systemd
@aescling the big extra thing is that i need to write it
- in a way NixOS understands (kinda trivial, i broadly know how)
- in a way that uses the virtual env i used for python (that one's harder but i think i see how?)