0
0
Fork 0
mirror of https://github.com/NixOS/nixpkgs.git synced 2025-07-14 06:00:33 +03:00

nixos/libvirtd: enable polkit

it is enforced by an assert anyway
This commit is contained in:
Sandro Jäckel 2023-05-20 17:30:34 +02:00
parent 9cdd9edc19
commit 64361e26b2
No known key found for this signature in database
GPG key ID: 3AF5A43A3EECC2E5

View file

@ -414,7 +414,9 @@ in
# https://libvirt.org/daemons.html#monolithic-systemd-integration # https://libvirt.org/daemons.html#monolithic-systemd-integration
systemd.sockets.libvirtd.wantedBy = [ "sockets.target" ]; systemd.sockets.libvirtd.wantedBy = [ "sockets.target" ];
security.polkit.extraConfig = '' security.polkit = {
enable = true;
extraConfig = ''
polkit.addRule(function(action, subject) { polkit.addRule(function(action, subject) {
if (action.id == "org.libvirt.unix.manage" && if (action.id == "org.libvirt.unix.manage" &&
subject.isInGroup("libvirtd")) { subject.isInGroup("libvirtd")) {
@ -423,4 +425,5 @@ in
}); });
''; '';
}; };
};
} }