From a1806f648f9fc53b89cdd6892fe2f50b98576ddc Mon Sep 17 00:00:00 2001 From: Henry-Hiles Date: Tue, 20 Oct 2026 20:37:22 -0400 Subject: [PATCH] always run steam in gamescope --- clients/quadraticpc/gamescope.nix | 7 +++++++ clients/quadtop/gamescope.nix | 7 +++++++ modules/desktop/gamescope.nix | 12 +----------- modules/desktop/steam.nix | 19 ++++++++++++++++++- 4 files changed, 33 insertions(+), 12 deletions(-) create mode 100644 clients/quadraticpc/gamescope.nix create mode 100644 clients/quadtop/gamescope.nix diff --git a/clients/quadraticpc/gamescope.nix b/clients/quadraticpc/gamescope.nix new file mode 100644 index 0000000..a2c3625 --- /dev/null +++ b/clients/quadraticpc/gamescope.nix @@ -0,0 +1,7 @@ +{ + programs.gamescope.args = [ + "-W 2560" + "-H 1440" + "-r 165" + ]; +} diff --git a/clients/quadtop/gamescope.nix b/clients/quadtop/gamescope.nix new file mode 100644 index 0000000..5993463 --- /dev/null +++ b/clients/quadtop/gamescope.nix @@ -0,0 +1,7 @@ +{ + programs.gamescope.args = [ + "-W 1920" + "-H 1080" + "-r 120" + ]; +} diff --git a/modules/desktop/gamescope.nix b/modules/desktop/gamescope.nix index 1cdb9ba..24a5ca1 100644 --- a/modules/desktop/gamescope.nix +++ b/modules/desktop/gamescope.nix @@ -1,13 +1,3 @@ { - programs = { - steam.gamescopeSession.enable = true; - gamescope = { - enable = true; - args = [ - "-W 2560" - "-H 1440" - "-r 165" - ]; - }; - }; + programs.gamescope.enable = true; } diff --git a/modules/desktop/steam.nix b/modules/desktop/steam.nix index a486630..53b290c 100644 --- a/modules/desktop/steam.nix +++ b/modules/desktop/steam.nix @@ -1,7 +1,24 @@ -{ pkgs, ... }: +{ pkgs, lib, ... }: { programs.steam = { enable = true; extraCompatPackages = [ pkgs.proton-ge-bin ]; + gamescopeSession.enable = true; }; + + environment.systemPackages = [ + (lib.hiPrio ( + pkgs.makeDesktopItem { + name = "steam"; + desktopName = "Steam"; + exec = "steam-gamescope"; + icon = "steam"; + categories = [ + "Network" + "FileTransfer" + "Game" + ]; + } + )) + ]; }