Commit 59027e28 broke libvirt broke libvirt/nixops on linux. Use ${targetPlatform.extensions.sharedLibrary} to accomodate both linux and darwin.