2024-08-28 19:58:21 -07:00
|
|
|
{pkgs, ...}: {
|
|
|
|
environment.systemPackages = with pkgs; [
|
|
|
|
ryujinx
|
|
|
|
];
|
2024-08-03 18:51:57 -07:00
|
|
|
programs.steam = {
|
|
|
|
enable = true;
|
|
|
|
remotePlay.openFirewall = true;
|
|
|
|
dedicatedServer.openFirewall = true;
|
|
|
|
localNetworkGameTransfers.openFirewall = true;
|
|
|
|
gamescopeSession.enable = true;
|
|
|
|
};
|
|
|
|
|
|
|
|
programs.gamescope.enable = true;
|
|
|
|
|
|
|
|
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
|
2024-08-07 00:49:16 -07:00
|
|
|
(writeShellScriptBin "launch-gamescope" ''
|
|
|
|
(sleep 1; pgrep gamescope| xargs renice -n -11 -p)&
|
|
|
|
exec gamescope "$@"
|
|
|
|
'')
|
2024-08-03 18:51:57 -07:00
|
|
|
keyutils
|
|
|
|
];
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|