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}" + ]; + }) ]; }