From 30736fc47b42d5834e0752ba37923d45be32b2cb Mon Sep 17 00:00:00 2001 From: John Titor <50095635+JohnRTitor@users.noreply.github.com> Date: Tue, 1 Apr 2025 14:37:15 +0530 Subject: [PATCH] nixos/amdvlk: enable 32 bit drivers properly Closes https://github.com/NixOS/nixpkgs/issues/395087 Signed-off-by: John Titor <50095635+JohnRTitor@users.noreply.github.com> --- nixos/modules/services/hardware/amdvlk.nix | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/nixos/modules/services/hardware/amdvlk.nix b/nixos/modules/services/hardware/amdvlk.nix index 295f7ed64ea2..95aeec16c02a 100644 --- a/nixos/modules/services/hardware/amdvlk.nix +++ b/nixos/modules/services/hardware/amdvlk.nix @@ -37,11 +37,15 @@ in }; config = lib.mkIf cfg.enable { - hardware.graphics = { - enable = true; - extraPackages = [ cfg.package ]; - extraPackages32 = [ cfg.support32Bit.package ]; - }; + hardware.graphics = + { + enable = true; + extraPackages = [ cfg.package ]; + } + // lib.optionalAttrs cfg.support32Bit.enable { + enable32Bit = true; + extraPackages32 = [ cfg.support32Bit.package ]; + }; environment.sessionVariables = lib.mkIf cfg.supportExperimental.enable { AMDVLK_ENABLE_DEVELOPING_EXT = "all";