From a8c3b7e85110745fb5c6c646f4d29a1e3a2152b3 Mon Sep 17 00:00:00 2001 From: Chris Toph Date: Tue, 27 May 2025 14:42:22 -0400 Subject: [PATCH] Update gaming configuration: remove video driver setting and add AMD Vulkan ICD variable --- hosts/global/common/gaming.nix | 2 -- hosts/nixos/rune/default.nix | 4 ++++ hosts/nixos/rune/hardware.nix | 5 ++++- 3 files changed, 8 insertions(+), 3 deletions(-) diff --git a/hosts/global/common/gaming.nix b/hosts/global/common/gaming.nix index e77fcb6..9f7c9be 100644 --- a/hosts/global/common/gaming.nix +++ b/hosts/global/common/gaming.nix @@ -12,8 +12,6 @@ driSupport32Bit = true; }; - services.xserver.videoDrivers = [ "amdgpu" ]; - programs = { steam = { enable = true; diff --git a/hosts/nixos/rune/default.nix b/hosts/nixos/rune/default.nix index 6758f72..119b59f 100644 --- a/hosts/nixos/rune/default.nix +++ b/hosts/nixos/rune/default.nix @@ -66,6 +66,10 @@ in asdf-vm ]; + environment.sessionVariables = { + AMD_VULKAN_ICD = "RADV"; + }; + # https://wiki.nixos.org/wiki/FAQ/When_do_I_update_stateVersion system.stateVersion = "24.11"; } diff --git a/hosts/nixos/rune/hardware.nix b/hosts/nixos/rune/hardware.nix index 66edc35..401175b 100644 --- a/hosts/nixos/rune/hardware.nix +++ b/hosts/nixos/rune/hardware.nix @@ -46,7 +46,10 @@ ]; kernelModules = [ ]; }; - kernelModules = [ "kvm-amd" ]; + kernelModules = [ + "kvm-amd" + "amdgpu" + ]; extraModulePackages = [ ]; };