fix steam

This commit is contained in:
41666 2025-03-15 18:44:28 -07:00
parent e10fd7d47b
commit ad42d0c008
3 changed files with 13 additions and 3 deletions

View file

@ -6,7 +6,7 @@
};
environment.systemPackages = with pkgs; [
steamcmd
steam-tui
# steamcmd
# steam-tui
];
}

View file

@ -46,6 +46,16 @@
nvidiaBusId = "PCI:1:0:0";
};
# always enable prime (fixes vulkan precaching -- it will compile them on AMD, trust aki, deal with it.)
programs.steam.package = pkgs.steam.override {
extraEnv = {
__NV_PRIME_RENDER_OFFLOAD="1";
__NV_PRIME_RENDER_OFFLOAD_PROVIDER="NVIDIA-G0";
__GLX_VENDOR_LIBRARY_NAME="nvidia";
__VK_LAYER_NV_optimus="NVIDIA_only";
};
};
# √(2560² + 1600²) px / 16 in ≃ 189 dpi
services.xserver.dpi = 189;
}

View file

@ -7,6 +7,6 @@ in {
ExecStart = "${pkg}/bin/legion-kb-rgb set --effect Static --colors 255,0,0,39,5,5,26,9,0,192,95,0";
Type = "oneshot";
};
after = [ "multi-user.target" ];
wantedBy = [ "multi-user.target" ];
};
}