I reached this part of the installation: IVSHMEM with the KVMFR module, but I get dkms: command not found. Some Nix users seem to have gotten Looking Glass working, I found this gist but am wondering if there are other ways to get kvmfr. Nixpkgs lists many packages but idk which I would install: NixOS Search.
We do not endorse or support packaging of any components of LG at this time.
May I ask why this is recommended?
Because LG is still in beta and undergoing heavy changes that cause host/client protocol breakages. As the host application is Windows based, it usually doesn’t end up packaged with the client application and people run mismatched versions creating bogus bug reports.
When we release 1.0 we will change this stance.
I wrote a short guide on how to configure Looking Glass on NixOS.
You can find it here, on the official NixOS wiki, or the Looking Glass wiki.
Hope that helps.
dkms is not used on NixOS, so that error is expected. On NixOS you have to build or enable kvmfr as a kernel module through your system configuration and rebuild, which is what the gist you found does. Once kvmfr is built against your running kernel, Looking Glass works normally.