From e463d15fd5097e66280b4e59e19dbe5b5ed7975e Mon Sep 17 00:00:00 2001 From: Chris Toph Date: Sat, 21 Jun 2025 14:04:36 -0400 Subject: [PATCH] Add gaming configuration notes and remove redundant session variables --- home/global/common/gaming/gamescope.nix | 5 ++++- hosts/global/common/gaming.nix | 10 +++++----- hosts/x86/gojo/default.nix | 6 ------ hosts/x86/haze/default.nix | 6 ------ hosts/x86/rune/default.nix | 6 ------ modules/home/monitors.nix | 1 - 6 files changed, 9 insertions(+), 25 deletions(-) diff --git a/home/global/common/gaming/gamescope.nix b/home/global/common/gaming/gamescope.nix index 0a8e2e2..336489b 100644 --- a/home/global/common/gaming/gamescope.nix +++ b/home/global/common/gaming/gamescope.nix @@ -1,3 +1,6 @@ +## NOTE: +## This is only configured for AMD GPUs; Nvidia might require additional configuration. +## For example host (PC) configuration using this module go to home/hosts/rune { pkgs, config, @@ -14,7 +17,7 @@ let # INFO: Example working commands for running games in steam-session ## Rivals ## - # SteamDeck=1 LD_PRELOAD="" PROTON_ENABLE_NVAPI=1 PROTON_ENABLE_WAYLAND=1 VKD3D_DISABLE_EXTENSIONS=VK_KHR_present_wait gamemoderun %command% -PSOCompileMode=1 -dx12 + # SteamDeck=1 LD_PRELOAD="" PROTON_ENABLE_NVAPI=1 PROTON_ENABLE_WAYLAND=1 VKD3D_DISABLE_EXTENSIONS=VK_KHR_present_wait gamemoderun %command% -PSOCompileMode=1 -dx12 ## Stats Overlay ## # gamemoderun mangohud %command% diff --git a/hosts/global/common/gaming.nix b/hosts/global/common/gaming.nix index 2a4d750..2dffa42 100644 --- a/hosts/global/common/gaming.nix +++ b/hosts/global/common/gaming.nix @@ -1,3 +1,6 @@ +## NOTE: +## This is only configured for AMD GPUs; Nvidia might require additional configuration. +## For example host (PC) configuration using this module go to hosts/x86/rune { pkgs, lib, @@ -6,17 +9,15 @@ ... }: { - hardware.graphics = { enable = true; enable32Bit = true; }; - # AMDgpu tool environment.systemPackages = with pkgs; [ - lact + lact # AMDgpu tool gamescope - # gamescope-wsi + # gamescope-wsi # TODO: Test again in future updates, borked atm 06/21/25 ]; systemd = { @@ -34,7 +35,6 @@ package = pkgs.protontricks; }; - # PKGs needed for gamescope to work within steam package = pkgs.steam.override { extraPkgs = pkgs: diff --git a/hosts/x86/gojo/default.nix b/hosts/x86/gojo/default.nix index c8afdd1..10e5638 100644 --- a/hosts/x86/gojo/default.nix +++ b/hosts/x86/gojo/default.nix @@ -65,12 +65,6 @@ in asdf-vm ]; - environment.sessionVariables = { - AMD_VULKAN_ICD = "RADV"; - RADV_PERFTEST = "aco"; - PROTON_USE_D9VK = 1; - }; - # FIXME: Remove once out of VM # VM guest additions to improve host-guest interaction services.spice-vdagentd.enable = true; diff --git a/hosts/x86/haze/default.nix b/hosts/x86/haze/default.nix index 1e3c848..8932382 100644 --- a/hosts/x86/haze/default.nix +++ b/hosts/x86/haze/default.nix @@ -64,12 +64,6 @@ in asdf-vm ]; - environment.sessionVariables = { - AMD_VULKAN_ICD = "RADV"; - RADV_PERFTEST = "aco"; - PROTON_USE_D9VK = 1; - }; - # https://wiki.nixos.org/wiki/FAQ/When_do_I_update_stateVersion system.stateVersion = "25.11"; } diff --git a/hosts/x86/rune/default.nix b/hosts/x86/rune/default.nix index 2aa2e8d..00aed05 100644 --- a/hosts/x86/rune/default.nix +++ b/hosts/x86/rune/default.nix @@ -68,12 +68,6 @@ in asdf-vm ]; - environment.sessionVariables = { - AMD_VULKAN_ICD = "RADV"; - RADV_PERFTEST = "aco"; - PROTON_USE_D9VK = 1; - }; - # https://wiki.nixos.org/wiki/FAQ/When_do_I_update_stateVersion system.stateVersion = "24.11"; } diff --git a/modules/home/monitors.nix b/modules/home/monitors.nix index fbc622e..f33a3bc 100644 --- a/modules/home/monitors.nix +++ b/modules/home/monitors.nix @@ -1,4 +1,3 @@ -# The options set using this module are intended for use with logic defined in specific workspace management configurations. For example, see nix-config/home/ta/common/optional/hyprland/ { lib, config, ... }: { options.monitors = lib.mkOption {