From ee5bdbaff9a4abe0907b1476c77c2ba9222c3571 Mon Sep 17 00:00:00 2001 From: xeovalyte Date: Tue, 12 Mar 2024 21:38:05 +0100 Subject: [PATCH] Added amd drivers --- hosts/laptop/default.nix | 1 + modules/system/desktop/amd.nix | 15 +++++++++++++++ 2 files changed, 16 insertions(+) create mode 100644 modules/system/desktop/amd.nix diff --git a/hosts/laptop/default.nix b/hosts/laptop/default.nix index 6ff6088..ac1c54c 100644 --- a/hosts/laptop/default.nix +++ b/hosts/laptop/default.nix @@ -3,6 +3,7 @@ { imports = [ # Include the results of the hardware scan. ./hardware-configuration.nix + ../../modules/system/desktop/amd.nix ../../modules/system/desktop/hyprland.nix ../../modules/system/programs/syncthing.nix ../../modules/system/programs/thunar.nix diff --git a/modules/system/desktop/amd.nix b/modules/system/desktop/amd.nix new file mode 100644 index 0000000..412fb71 --- /dev/null +++ b/modules/system/desktop/amd.nix @@ -0,0 +1,15 @@ +{ pkgs, ... }: + +{ + boot.initrd.kernelModules = [ "amdgpu" ]; + + hardware.opengl.driSupport32Bit = true; + + hardware.opengl.extraPackages = with pkgs; [ + amdvlk + ]; + + hardware.opengl.extraPackages32 = with pkgs; [ + driversi686Linux.amdvlk + ]; +}