Experimenting with graphics drivers

This commit is contained in:
Emmet 2024-04-01 12:41:51 -05:00
parent 67121e023f
commit 428298ee30
3 changed files with 14 additions and 8 deletions

View file

@ -8,10 +8,16 @@
[ (modulesPath + "/installer/scan/not-detected.nix") [ (modulesPath + "/installer/scan/not-detected.nix")
]; ];
boot.initrd.availableKernelModules = [ "nvme" "xhci_pci" "usbhid" "usb_storage" "sd_mod" ]; boot.initrd.availableKernelModules = [ "nvme" "xhci_pci" "usbhid" "usb_storage" "sd_mod" "kvm-amd" "amdgpu" ];
boot.initrd.kernelModules = [ ]; boot.initrd.kernelModules = [ "amdgpu" ];
boot.kernelModules = [ "kvm-amd" ]; boot.kernelModules = [ "kvm-amd" "amdgpu" ];
boot.extraModulePackages = [ ]; boot.extraModulePackages = with config.boot.kernelPackages; [ zenpower amdgpu-pro ];
hardware.opengl.extraPackages = [ pkgs.amdvlk ];
hardware.opengl.extraPackages32 = [ pkgs.driversi686Linux.amdvlk ];
systemd.tmpfiles.rules = [
"L+ /opt/rocm/hip - - - - ${pkgs.rocmPackages.clr}"
];
services.btrfs.autoScrub = { services.btrfs.autoScrub = {
enable = true; enable = true;

View file

@ -3,7 +3,4 @@
{ {
boot.kernelPackages = pkgs.linuxPackages_zen; boot.kernelPackages = pkgs.linuxPackages_zen;
boot.consoleLogLevel = 0; boot.consoleLogLevel = 0;
boot.extraModulePackages = with config.boot.kernelPackages; [
zenpower
];
} }

View file

@ -1,6 +1,9 @@
{ ... }: { pkgs, ... }:
{ {
# OpenGL # OpenGL
hardware.opengl.enable = true; hardware.opengl.enable = true;
hardware.opengl.extraPackages = with pkgs; [
rocmPackages.clr.icd
];
} }