Add service to start steam in the background.

I'm actually also starting Steam in big picture mode through the steam
configuration UI on this system, so this may be redundant, but I'm
adding it anyway.
This commit is contained in:
Eli Ribble 2024-12-18 10:42:19 -07:00
parent dec120533b
commit d7d81564e3
1 changed files with 11 additions and 0 deletions

View File

@ -109,6 +109,17 @@
systemd.network.enable = true;
systemd.network.wait-online.enable = false;
systemd.user.services.steam = {
enable = true;
description = "Open Steam in the background at boot";
serviceConfig = {
ExecStart = "${pkgs.steam}/bin/steam -nochatui -nofriendsui -silent %U";
wantedBy = [ "graphical-session.target" ];
Restart = "on-failure";
RestartSec = "5s";
};
};
# Set your time zone.
time.timeZone = "America/Phoenix";