Background: I have a 12th gen Intel NUC I’m fiddling around with, running Proxmox. My goal is to pass through the iGPU to VMs running on the machine for the purposes of hardware-accelerated transcoding. I’ve actually achieved that goal - using this driver, installed on both the PVE host and an Ubuntu server guest: GitHub - strongtz/i915-sriov-dkms: dkms module of Linux i915 driver with SR-IOV support
Problem: I’d like to be able to run it on a NixOS guest instead of Ubuntu, though. The issue is that I’m so far from a NixOS expert that I’m not even sure where to start on using DKMS to add this as a kernel module.
My question: Is this something that’s difficult to adapt to NixOS configuration, or is it something that I can figure my way through? If so, where should I be looking to learn how to get it done?
I determined that this level of customisation is presently beyond my ability and ran Nix on Ubuntu instead so I could just use dkms.
The driver is experimental, though, and while I’ve gotten it working on the VM, none of the sub-iGPUs or even the root iGPU can be used on Proxmox itself, which I’m thinking would actually be more ideal (to use a Nixos LXC with direct access to /dev/dri). My fiddling is very, very far from production, even ignoring this snag.