@jessew@mk.cpluspatch.com boo why are you putting the script in /etc and putting a POSIX shebang but using bash features and running it with bash from the active /etc directory. just set ExecStart = pkgs.writeScript "pid-roulette.sh" '' ... ''; and let Nix handle setting the shebang to a deterministic path.