From 18cd03ea1842326cd94c9bd40c9eb911ddac39fb Mon Sep 17 00:00:00 2001 From: Alexander Kassouni Date: Sat, 10 Oct 2026 16:51:23 -0700 Subject: add steam session, drop steam user --- machines/common/base.nix | 4 ---- machines/common/default.nix | 1 + machines/common/steam.nix | 47 +++++++++++++++++++-------------------------- 3 files changed, 21 insertions(+), 31 deletions(-) (limited to 'machines/common') diff --git a/machines/common/base.nix b/machines/common/base.nix index fbef8ae..9ee5dfb 100644 --- a/machines/common/base.nix +++ b/machines/common/base.nix @@ -13,10 +13,6 @@ nixpkgs.config.allowUnfree = true; - programs.steam.enable = true; - hardware.steam-hardware.enable = true; - programs.gamescope.enable = true; - time.timeZone = "America/Los_Angeles"; i18n.defaultLocale = "en_US.UTF-8"; diff --git a/machines/common/default.nix b/machines/common/default.nix index 9af7dc0..1922bad 100644 --- a/machines/common/default.nix +++ b/machines/common/default.nix @@ -7,6 +7,7 @@ ./printer.nix ./rip.nix ./tailscale.nix + ./steam.nix ./user.nix ]; } diff --git a/machines/common/steam.nix b/machines/common/steam.nix index aa4ad84..0f68ca8 100644 --- a/machines/common/steam.nix +++ b/machines/common/steam.nix @@ -1,35 +1,28 @@ -{lib, pkgs, ...}: { - users.users.steam = { - isNormalUser = true; - uid = 1001; - home = "/home/steam"; - extraGroups = [ - "wheel" - "video" - "docker" - "input" - "audio" - ]; - }; +{...}: { + programs.steam = { + enable = true; - programs = { - gamescope = { + gamescopeSession = { enable = true; - capSysNice = true; + args = [ + "-W" + "3840" + "-H" + "2160" + "-f" + "-e" + "--xwayland-count" + "2" + "--hdr-enabled" + "--hdr-itm-enabled" + ]; }; - steam.gamescopeSession.enable = true; }; - - programs.steam.enable = true; - hardware.steam-hardware.enable = true; - services.greetd = { + programs.gamescope = { enable = true; - settings = { - default_session = { - command = "${lib.getExe pkgs.gamescope} -W 3840 -H 2160 -f -e --xwayland-count 2 --hdr-enabled --hdr-itm-enabled -- steam -pipewire-dmabuf -gamepadui -steamdeck -steamos3 > /dev/null 2>&1"; - user = "steam"; - }; - }; + capSysNice = false; }; + + hardware.steam-hardware.enable = true; } -- cgit v1.3.1