Re-add HW accel to amd-laptop

This commit is contained in:
Vili Sinervä 2025-06-08 09:41:24 +03:00
parent 46b565de32
commit b15548143d
Signed by: Vili Sinervä
SSH key fingerprint: SHA256:FladqYjaE4scJY3Hi+gnShZ6ygnTJgixy0I6BAoHyos

View file

@ -7,16 +7,17 @@
{ {
environment.systemPackages = with pkgs; [ zenmonitor ]; 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 = { services = {
xserver = lib.mkIf config.services.xserver.enable { xserver = lib.mkIf config.services.xserver.enable {
videoDrivers = [ videoDrivers = [ "modesetting" ];
"amdgpu"
"modesetting"
];
deviceSection = '' deviceSection = ''
Option "DRI" "2" Option "DRI" "2"
Option "TearFree" "true" Option "TearFree" "true"