|
|
| Line 98: |
Line 98: |
| === gamescope === | | === gamescope === |
|
| |
|
| The [https://github.com/ValveSoftware/gamescope gamescope] compositor, which enables features such as resolution upscaling and stretched aspect ratios (such as 4:3), can be fixed by adding the following override to Steam:
| | To use the [https://github.com/ValveSoftware/gamescope gamescope] compositor, which enables features such as resolution upscaling and stretched aspect ratios (such as 4:3), set <code>programs.steam.gamescopeSession.enable = true;</code> in your system configuration. |
| | |
| <syntaxHighlight lang=nix> | |
| nixpkgs.config.packageOverrides = pkgs: {
| |
| steam = pkgs.steam.override {
| |
| extraPkgs = pkgs: with pkgs; [
| |
| xorg.libXcursor
| |
| xorg.libXi
| |
| xorg.libXinerama
| |
| xorg.libXScrnSaver
| |
| libpng
| |
| libpulseaudio
| |
| libvorbis
| |
| stdenv.cc.cc.lib
| |
| libkrb5
| |
| keyutils
| |
| ];
| |
| };
| |
| };
| |
| </syntaxHighlight> | |
| | |
| After this, ensure that the package <code>gamescope</code> is installed by adding it to <code>environment.systemPackages</code>, for example.
| |
| | |
| For background, see [https://github.com/NixOS/nixpkgs/issues/162562#issuecomment-1229444338 the discussion on GitHub].
| |
|
| |
|
| == Troubleshooting == | | == Troubleshooting == |