added drivers for systems

This commit is contained in:
2026-07-06 17:02:12 +01:00
parent 1e9783a97d
commit 3bb63059fa
2 changed files with 55 additions and 0 deletions

View File

@@ -0,0 +1,36 @@
{
self,
inputs,
...
}: {
flake.nixosModules.amdDrivers = {
pkgs,
lib,
...
}: {
hardware = {
graphics = {
enable = true;
enable32Bit = true;
extraPackages = with pkgs; [
libva-vdpau-driver
libvdpau-va-gl
rocmPackages.clr.icd
];
};
amdgpu = {
initrd.enable = true;
opencl.enable = true;
};
};
boot.kernelParams = [
"amdgpu.ppfeaturemask=0xffffffff"
];
# For rOCM
systemd.tmpfiles.rules = [
"L+ /opt/rocm - - - - ${pkgs.rocmPackages.clr}"
];
};
}

View File

@@ -0,0 +1,19 @@
{
self,
inputs,
...
}: {
flake.nixosModules.intelDrivers = {
pkgs,
lib,
...
}: {
hardware.graphics = {
enable = true;
extraPackages = with pkgs; [
intel-vaapi-driver
libva-vdpau-driver
];
};
};
}