45 lines
1.1 KiB
Nix
45 lines
1.1 KiB
Nix
{pkgs, ...}: {
|
|
allowUnfreePkgNames = [
|
|
"steam"
|
|
"steam-unwrapped"
|
|
"steam-run"
|
|
"steam-original"
|
|
"osu-lazer"
|
|
];
|
|
environment.systemPackages = with pkgs; [
|
|
gamescope-wsi # HDR won't work without this
|
|
];
|
|
programs.steam = {
|
|
enable = true;
|
|
remotePlay.openFirewall = true;
|
|
dedicatedServer.openFirewall = true;
|
|
localNetworkGameTransfers.openFirewall = true;
|
|
gamescopeSession = {
|
|
enable = true;
|
|
args = ["-r" "120" "-W" "3840" "-H" "2160" "-O" "HDMI-A-1" "--rt" "--hdr-enabled" "--adaptive-sync" "--xwayland-count" "2"];
|
|
env = {
|
|
PROTON_ENABLE_WAYLAND = "1";
|
|
PROTON_ENABLE_HDR = "1";
|
|
ENABLE_HDR_WSI = "1";
|
|
DXVK_HDR = "1";
|
|
STEAM_MULTIPLE_XWAYLANDS = "1";
|
|
};
|
|
};
|
|
};
|
|
programs.gamescope = {
|
|
enable = true;
|
|
capSysNice = true;
|
|
};
|
|
programs.gamemode.enable = true;
|
|
nixpkgs.config.permittedInsecurePackages = [
|
|
"mbedtls-2.28.10"
|
|
];
|
|
services.xserver.desktopManager.retroarch = {
|
|
enable = true;
|
|
package = pkgs.retroarch.withCores (cores:
|
|
with cores; [
|
|
bsnes
|
|
beetle-psx-hw
|
|
]);
|
|
};
|
|
}
|