Unverified Commit 64361e26 authored by Sandro Jäckel's avatar Sandro Jäckel
Browse files

nixos/libvirtd: enable polkit

it is enforced by an assert anyway
parent 9cdd9edc
Loading
Loading
Loading
Loading
+11 −8
Original line number Diff line number Diff line
@@ -414,7 +414,9 @@ in
    # https://libvirt.org/daemons.html#monolithic-systemd-integration
    systemd.sockets.libvirtd.wantedBy = [ "sockets.target" ];

    security.polkit.extraConfig = ''
    security.polkit = {
      enable = true;
      extraConfig = ''
        polkit.addRule(function(action, subject) {
          if (action.id == "org.libvirt.unix.manage" &&
            subject.isInGroup("libvirtd")) {
@@ -423,4 +425,5 @@ in
        });
      '';
    };
  };
}