mirror of
https://github.com/ryan4yin/nix-config.git
synced 2026-04-21 16:31:22 +02:00
fix: steam - games failed to start
This commit is contained in:
@@ -52,7 +52,9 @@ in {
|
|||||||
|
|
||||||
# see https://github.com/fufexan/nix-gaming/#pipewire-low-latency
|
# see https://github.com/fufexan/nix-gaming/#pipewire-low-latency
|
||||||
services.pipewire.lowLatency.enable = true;
|
services.pipewire.lowLatency.enable = true;
|
||||||
imports = [
|
programs.steam.platformOptimizations.enable = true;
|
||||||
nix-gaming.nixosModules.pipewireLowLatency
|
imports = with nix-gaming.nixosModules; [
|
||||||
|
pipewireLowLatency
|
||||||
|
platformOptimizations
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -9,27 +9,44 @@
|
|||||||
# ~/.steam/root - A symlink to ~/.local/share/Steam
|
# ~/.steam/root - A symlink to ~/.local/share/Steam
|
||||||
# ~/.steam - Some Symlinks & user info
|
# ~/.steam - Some Symlinks & user info
|
||||||
enable = true;
|
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
|
# fix gamescope inside steam
|
||||||
package = pkgs.steam.override {
|
package = pkgs.steam.override {
|
||||||
extraPkgs = pkgs:
|
extraPkgs = pkgs:
|
||||||
with pkgs; [
|
with pkgs; [
|
||||||
keyutils
|
|
||||||
libkrb5
|
|
||||||
libpng
|
|
||||||
libpulseaudio
|
|
||||||
libvorbis
|
|
||||||
stdenv.cc.cc.lib
|
|
||||||
xorg.libXcursor
|
xorg.libXcursor
|
||||||
xorg.libXi
|
xorg.libXi
|
||||||
xorg.libXinerama
|
xorg.libXinerama
|
||||||
xorg.libXScrnSaver
|
xorg.libXScrnSaver
|
||||||
|
libpng
|
||||||
|
libpulseaudio
|
||||||
|
libvorbis
|
||||||
|
stdenv.cc.cc.lib
|
||||||
|
libkrb5
|
||||||
|
keyutils
|
||||||
|
|
||||||
# fix CJK fonts
|
# fix CJK fonts
|
||||||
source-sans
|
source-sans
|
||||||
source-serif
|
source-serif
|
||||||
source-han-sans
|
source-han-sans
|
||||||
source-han-serif
|
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
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user