Compare commits

...

2 commits

Author SHA1 Message Date
Bruno BELANYI a6db4acc6d nixos: hardware: graphics: add 32bit Intel drivers
Some checks failed
ci/woodpecker/push/check Pipeline failed
2024-06-13 12:15:43 +00:00
Bruno BELANYI af2f9b20a7 nixos: hardware: graphics: use AMDVLK options
Some checks failed
ci/woodpecker/push/check Pipeline failed
2024-06-13 11:17:22 +00:00

View file

@ -35,19 +35,22 @@ in
(lib.mkIf (cfg.gpuFlavor == "amd") {
boot.initrd.kernelModules = lib.mkIf cfg.amd.enableKernelModule [ "amdgpu" ];
hardware.amdgpu = {
# Vulkan
amdvlk = lib.mkIf cfg.amd.amdvlk {
enable = true;
support32Bit = {
enable = true;
};
};
};
hardware.opengl = {
extraPackages = with pkgs; [
# OpenCL
rocmPackages.clr
rocmPackages.clr.icd
]
++ lib.optional cfg.amd.amdvlk amdvlk
;
extraPackages32 = with pkgs; [
]
++ lib.optional cfg.amd.amdvlk driversi686Linux.amdvlk
;
];
};
})
@ -69,6 +72,17 @@ in
intel-vaapi-driver
libvdpau-va-gl
];
# FIXME: compare with https://github.com/NixOS/nixos-hardware/pull/945/files
extraPackages32 = with pkgs.driversi686Linux; [
# Open CL
intel-compute-runtime
# VA API
intel-media-driver
intel-vaapi-driver
libvdpau-va-gl
];
};
})
]);