From 388df1538c8a99792628afd0d84bd38e989be5ed Mon Sep 17 00:00:00 2001 From: Gabriel Fontes Date: Fri, 13 Dec 2024 12:07:49 -0300 Subject: [PATCH] fix(home/games/star-citizen): enable gamescope, enable umu --- home/gabriel/features/games/star-citizen.nix | 22 ++++++++++++++++++-- 1 file changed, 20 insertions(+), 2 deletions(-) diff --git a/home/gabriel/features/games/star-citizen.nix b/home/gabriel/features/games/star-citizen.nix index 320da176..faa22f58 100644 --- a/home/gabriel/features/games/star-citizen.nix +++ b/home/gabriel/features/games/star-citizen.nix @@ -1,5 +1,23 @@ -{pkgs, ...}: { +{ + pkgs, + lib, + config, + ... +}: let + monitor = lib.head (lib.filter (m: m.primary) config.monitors); +in { home.packages = [ - (pkgs.inputs.nix-gaming.star-citizen.override {disableEac = false;}) + (pkgs.inputs.nix-gaming.star-citizen.override { + disableEac = false; + useUmu = true; + gameScopeEnable = true; + gameScopeArgs = [ + "--force-grab-cursor" + "--output-width ${toString monitor.width}" + "--output-height ${toString monitor.height}" + "--framerate-limit ${toString monitor.refreshRate}" + "--prefer-output ${monitor.name}" + ]; + }) ]; }