diff --git a/personal/hardware/amd-laptop.nix b/personal/hardware/amd-laptop.nix index 8adf517..73560d5 100644 --- a/personal/hardware/amd-laptop.nix +++ b/personal/hardware/amd-laptop.nix @@ -7,16 +7,17 @@ { environment.systemPackages = with pkgs; [ zenmonitor ]; - hardware.graphics.extraPackages = with pkgs; [ rocmPackages.clr.icd ]; + hardware.graphics = { + enable = true; + enable32Bit = true; + extraPackages = with pkgs; [ rocmPackages.clr.icd ]; + }; - boot.initrd.kernelModules = [ "amdgpu" ]; + hardware.amdgpu.initrd.enable = true; services = { xserver = lib.mkIf config.services.xserver.enable { - videoDrivers = [ - "amdgpu" - "modesetting" - ]; + videoDrivers = [ "modesetting" ]; deviceSection = '' Option "DRI" "2" Option "TearFree" "true"