diff --git a/modules/nixos/desktop/game/gamemode.nix b/modules/nixos/desktop/game/gamemode.nix index ee2e765a..8b3a524a 100644 --- a/modules/nixos/desktop/game/gamemode.nix +++ b/modules/nixos/desktop/game/gamemode.nix @@ -52,7 +52,9 @@ in { # see https://github.com/fufexan/nix-gaming/#pipewire-low-latency services.pipewire.lowLatency.enable = true; - imports = [ - nix-gaming.nixosModules.pipewireLowLatency + programs.steam.platformOptimizations.enable = true; + imports = with nix-gaming.nixosModules; [ + pipewireLowLatency + platformOptimizations ]; } diff --git a/modules/nixos/desktop/game/steam.nix b/modules/nixos/desktop/game/steam.nix index d30f55ae..45d8b4d2 100644 --- a/modules/nixos/desktop/game/steam.nix +++ b/modules/nixos/desktop/game/steam.nix @@ -9,27 +9,44 @@ # ~/.steam/root - A symlink to ~/.local/share/Steam # ~/.steam - Some Symlinks & user info enable = true; + # https://github.com/ValveSoftware/gamescope + # enables features such as resolution upscaling and stretched aspect ratios (such as 4:3) + gamescopeSession.enable = true; # fix gamescope inside steam package = pkgs.steam.override { extraPkgs = pkgs: with pkgs; [ - keyutils - libkrb5 - libpng - libpulseaudio - libvorbis - stdenv.cc.cc.lib xorg.libXcursor xorg.libXi xorg.libXinerama xorg.libXScrnSaver + libpng + libpulseaudio + libvorbis + stdenv.cc.cc.lib + libkrb5 + keyutils # fix CJK fonts source-sans source-serif source-han-sans source-han-serif + + # audio + pipewire + + # other common + udev + alsa-lib + vulkan-loader + xorg.libX11 + xorg.libXcursor + xorg.libXi + xorg.libXrandr # To use the x11 feature + libxkbcommon + wayland # To use the wayland feature ]; }; };