GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
Already on GitHub? Sign in to your account
Right now, the libvirtd management socket is only accessible by root:root.
How about adding a libvirtd user group to Nixos for that purpose? Or maybe a configurable user group?
I'm not sure what would be the best option here, but this page lists the alternatives: https://wiki.archlinux.org/index.php/Libvirt#Configuration - PolicyKit would be possible too, but it seems to me that it would be overkill for most situations.
Access to users in the "libvirtd" group was added here: f7d11af. The group name is hardcoded, but I cannot think of a situation (yet) where it'd be useful to have it configurable.