Introduction: I use Intel Arc GPU (specifically a750) paired with i5 13400F, how can I enable hardware accelaration and install other necessary drivers in it? I am a bit confused as I am a newbie to Linux and NixOS.
What I have learned and implemented (only those which are comments) after reading a few wiki pages, inside /etc/configuration.nix
But, when I do sudo nixos-rebuild switch I encounter no errors but when I reboot it only shows the tty. And, after loggin in through tty I cannot even start sddm sudo systemctl start sddm. It says sddm.service not found. So, after that I just commented every change I made and it fixed.
so for the configuration of the Gpu you just need to put following in the configuration:
hardware.opengl = {
enable = true;
extraPackages = with pkgs; [
... # your Open GL, Vulkan and VAAPI drivers
vpl-gpu-rt # for newer GPUs on NixOS >24.05 or unstable
# onevpl-intel-gpu # for newer GPUs on NixOS <= 24.05
# intel-media-sdk # for older GPUs
];
};
For the sddm problem i don’t really understand if it works now.
but could you post your config?
the problem was with services.xserver.videoDrivers = [ "intel" ];
after commenting out this line and intel-vaapi-driver everything worked fine!
thanks for your response!
this is my configuration
Actually, by default mesa is set up in NixOS. So, you can use your system out of the box. As per the wiki, if you want to add something to hardware.graphics.extraPackages it will be only vpl-gpu-rt and if you want to put more efforts in it. Check out the wiki accelerated video playback. But, it is not something necessary or maybe it is already done or pre configured. I’m not really sure, because without configuring anything, it still works fine.