http://looking-glass.io
Looking Glass is an open-source application that allows the use of a KVM (Kernel-based Virtual Machine) configured for VGA PCI Pass-through without an attached physical monitor, keyboard or mouse.
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.
Is sufficient to get the module built and included, because as you note, it’s already packaged. I can’t speak to the rest of it, as I don’t use the software.
nixos-vfio was helpful for me to get it working – example in my flake is here, with the caveat that I haven’t used it in a couple months so could have some issues.
I played most of the latest Doom game in Windows via Looking Glass with this configuration though – worked pretty well at the time.
Just curious, why’d you call lib.singleton prior to defining the file that would be written as the “package”? For me I’ve only had to call pkgs.writeTextFil, and when I tried using singleton it failed, with an error stating that a non-absolute path was provided for a value requiring an absolute path, which it promptly stopped having upon the removal of the lib.singleton call.