Files
nixos-blueprint/hosts/dunamis/steam.nix
T
2026-01-24 22:57:18 +02:00

42 lines
1000 B
Nix

{
pkgs,
perSystem,
...
}: {
programs = {
gamescope.enable = true;
gamescope.capSysNice = true;
gamemode.enable = true;
steam.enable = true;
steam.package = perSystem.mypackages.steam-bwrapped.override {
unfreePkgs = ["steam" "steam-unwrapped"];
addPkgs = let
runtimeInputs = with pkgs; [mangohud gamemode gamescope];
in
runtimeInputs
++ [
(pkgs.writeShellApplication {
name = "mygamescope";
inherit runtimeInputs;
text = ''
export LD_PRELOAD=""
export PROTON_ENABLE_WAYLAND=1
export DXVK_ALLOWFSE=true
export DXVK_HUD=compiler
gamescope -H 1440 -r 170 -f \
--adaptive-sync \
--rt \
--force-grab-cursor \
--mangoapp \
"$@"
'';
})
];
bwrapperOpts.mounts.readWrite = ["/storage/games/steam"];
};
};
}