From cc82892eb7993a119ac8f53a87a00776c0242de9 Mon Sep 17 00:00:00 2001 From: Ryan Yin Date: Sun, 13 Jul 2025 02:02:30 +0800 Subject: [PATCH] fix: enable steam only on x86_64 platform --- modules/nixos/desktop/game/gamemode.nix | 2 +- modules/nixos/desktop/game/steam.nix | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/nixos/desktop/game/gamemode.nix b/modules/nixos/desktop/game/gamemode.nix index 8b3a524a..54908269 100644 --- a/modules/nixos/desktop/game/gamemode.nix +++ b/modules/nixos/desktop/game/gamemode.nix @@ -37,7 +37,7 @@ in { # 2. For others, launching the game through gamemoderun: `gamemoderun ./game` # 3. For steam: `gamemoderun steam-runtime` programs.gamemode = { - enable = true; + enable = pkgs.stdenv.isx86_64; settings = { general = { softrealtime = "auto"; diff --git a/modules/nixos/desktop/game/steam.nix b/modules/nixos/desktop/game/steam.nix index 45d8b4d2..62d99099 100644 --- a/modules/nixos/desktop/game/steam.nix +++ b/modules/nixos/desktop/game/steam.nix @@ -8,7 +8,7 @@ # ~/.local/share/Steam/steamapps/common - The default Game install location # ~/.steam/root - A symlink to ~/.local/share/Steam # ~/.steam - Some Symlinks & user info - enable = true; + enable = pkgs.stdenv.isx86_64; # https://github.com/ValveSoftware/gamescope # enables features such as resolution upscaling and stretched aspect ratios (such as 4:3) gamescopeSession.enable = true;