From d7d81564e3192055c16fb4620022ba4ee8710ea8 Mon Sep 17 00:00:00 2001 From: Eli Ribble Date: Wed, 18 Dec 2024 10:42:19 -0700 Subject: [PATCH] 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. --- thenix/etc/nixos/configuration.nix | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/thenix/etc/nixos/configuration.nix b/thenix/etc/nixos/configuration.nix index 517822a..ab8eb39 100644 --- a/thenix/etc/nixos/configuration.nix +++ b/thenix/etc/nixos/configuration.nix @@ -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";