Files
cnix/hosts/extra/steam/default.nix
2024-06-29 19:29:43 +02:00

53 lines
1.2 KiB
Nix

{pkgs, ...}: {
programs = {
steam = {
enable = true;
extraCompatPackages = [
pkgs.proton-ge-bin
pkgs.vkd3d-proton
];
gamescopeSession.enable = true;
package = pkgs.steam.override {
extraPkgs = pkgs:
with pkgs; [
xorg.libXcursor
xorg.libXi
xorg.libXinerama
xorg.libXScrnSaver
libpng
libpulseaudio
libvorbis
stdenv.cc.cc.lib
libkrb5
keyutils
mangohud
SDL2
SDL2_image
];
};
};
gamescope = {
enable = true;
capSysNice = true;
};
gamemode = {
enable = true;
settings = {
general = {
renice = 10;
};
gpu = {
apply_gpu_optimisations = "accept-responsibility";
gpu_device = 1;
amd_performance_level = "high";
};
custom = {
start = "${pkgs.libnotify}/bin/notify-send 'GameMode started'";
end = "${pkgs.libnotify}/bin/notify-send 'GameMode ended'";
};
};
};
};
environment.variables.AMD_VULKAN_ICD = "RADV";
}