I am trying to declaratively start Steam automatically on boot in the background in configuration.nix. I am trying to do this via a custom systemd service. I can’t get running, though. Am I just doing it wrong?
There is a steam option that already does this for you in Settings > Interface > Run Steam when my computer starts
I don’t know whether this will work for other DEs, but in Gnome it creates a desktop file for Steam in ~/.config/autostart, which you can modify its executable to Exec=steam -nochatui -nofriendsui -silent
If this doesn’t work, you might want to look at how your DE autostarts programs and do it that way.
nixos systemd[2638]: Started Open Steam in the background at boot.
nixos systemd[2638]: steam.service: Main process exited, code=exited, status=203/EXEC
nixos systemd[2638]: steam.service: Failed with result 'exit-code'.