Personal Nix setup
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Readd gamescope fix

+24
+24
modules/apps/games.nix
··· 3 3 with lib; 4 4 let 5 5 cfg = config.modules.apps; 6 + 7 + gamescope = pkgs.gamescope.overrideAttrs (old: { 8 + version = "3.16.1-f873ec7"; 9 + patches = []; 10 + src = pkgs.fetchFromGitHub { 11 + owner = "ValveSoftware"; 12 + repo = "gamescope"; 13 + rev = "f873ec7868fe84d2850e91148bcbd6d6b19a7443"; 14 + fetchSubmodules = true; 15 + hash = "sha256-ItP9VE4IMgnIPDeDQag+gVZMuoRO0uI6gF2tC4WVObE="; 16 + }; 17 + buildInputs = old.buildInputs ++ [ pkgs.luajit ]; 18 + # See: https://github.com/ValveSoftware/gamescope/pull/1494 19 + NIX_CFLAGS_COMPILE = [ "-fno-fast-math" "-fno-omit-frame-pointer" ]; 20 + patchPhase = '' 21 + substituteInPlace ./src/reshade_effect_manager.cpp \ 22 + --replace-fail "\"/usr\"" "\"$out\"" 23 + substituteInPlace ./src/Utils/Process.cpp \ 24 + --replace-fail "\"gamescopereaper\"" "\"$out/bin/gamescopereaper\"" 25 + patchShebangs ./default_scripts_install.sh 26 + patchShebangs ./subprojects/libdisplay-info/tool/gen-search-table.py 27 + ''; 28 + }); 6 29 in { 7 30 options.modules.apps.games = { 8 31 enable = mkOption { ··· 46 69 gamemode.enable = true; 47 70 gamescope = { 48 71 enable = true; 72 + package = gamescope; 49 73 env = { 50 74 PROTON_ENABLE_AMD_AGS = "1"; 51 75 ENABLE_HDR_WSI = "1";