steam tinkering

This commit is contained in:
cnst
2024-06-29 19:29:43 +02:00
parent e60e04b9de
commit 2f02cf259f
7 changed files with 89 additions and 63 deletions

View File

@@ -1,23 +1,52 @@
{ pkgs, ... }:
{
programs.steam = {
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
gamescope
mangohud
];
{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";
}