mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-07-13 21:50:33 +03:00
nixos/libvirtd: enable polkit
it is enforced by an assert anyway
This commit is contained in:
parent
9cdd9edc19
commit
64361e26b2
1 changed files with 11 additions and 8 deletions
|
@ -414,13 +414,16 @@ 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 = {
|
||||||
polkit.addRule(function(action, subject) {
|
enable = true;
|
||||||
if (action.id == "org.libvirt.unix.manage" &&
|
extraConfig = ''
|
||||||
subject.isInGroup("libvirtd")) {
|
polkit.addRule(function(action, subject) {
|
||||||
return polkit.Result.YES;
|
if (action.id == "org.libvirt.unix.manage" &&
|
||||||
}
|
subject.isInGroup("libvirtd")) {
|
||||||
});
|
return polkit.Result.YES;
|
||||||
'';
|
}
|
||||||
|
});
|
||||||
|
'';
|
||||||
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue