fix amdgpu

This commit is contained in:
Bryan Ramos 2025-02-26 14:29:13 -05:00
parent a4f43bf0cf
commit 3dc9061cc0
Signed by: bryan
GPG key ID: 6ABDCD144D6643C8
2 changed files with 1 additions and 9 deletions

View file

@ -9,7 +9,7 @@
kernelModules = [ "dm-snapshot" ];
};
extraModulePackages = [ ];
kernelParams = [ "intel_iommu=off" ];
kernelParams = [ "intel_iommu=on" ];
kernelModules = [ "kvm-intel" "virtio" "vfio-pci" "coretemp" "amdgpu" ];
};
@ -65,15 +65,11 @@
};
hardware = {
cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
amdgpu = {
initrd.enable = true;
opencl.enable = true;
};
};
services.xserver.videoDrivers = [ "amdgpu" ];
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
powerManagement.cpuFreqGovernor = lib.mkDefault "performance";
}

View file

@ -42,10 +42,6 @@ with lib;
configurationLimit = 5;
memtest86.enable = true;
};
efi = {
canTouchEfiVariables = true;
};
timeout = null;
};