From ee5f89c69f60fbe2821b9fdf780146fbec73725c Mon Sep 17 00:00:00 2001 From: Mel Date: Tue, 6 Jan 2026 18:41:15 +0100 Subject: Switch Bismuth from Nvidia to AMD, move hardware modules to own directory Signed-off-by: Mel --- modules/hardware/amd-gpu.nix | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 modules/hardware/amd-gpu.nix (limited to 'modules/hardware/amd-gpu.nix') diff --git a/modules/hardware/amd-gpu.nix b/modules/hardware/amd-gpu.nix new file mode 100644 index 0000000..cfaa974 --- /dev/null +++ b/modules/hardware/amd-gpu.nix @@ -0,0 +1,31 @@ +{ + pkgs, + ... +}: + +{ + hardware.graphics = { + enable = true; + enable32Bit = true; + + # use amdvlk in conjunction with amdgpu, + # applications can choose which one to use. + extraPackages = with pkgs; [ amdvlk ]; + extraPackages32 = with pkgs; [ driversi686Linux.amdvlk ]; + }; + + services.xserver.videoDrivers = [ "amdgpu" ]; + + hardware.amdgpu = { + opencl.enable = true; + initrd.enable = true; + overdrive.enable = false; + legacySupport.enable = false; + }; + + services.lact.enable = true; + environment.systemPackages = with pkgs; [ + lact + clinfo + ]; +} -- cgit 1.4.1