No permissions to network-manager

I can’t modify any connections without sudo. nm-applet show only red icon with sad face and I can’t interact with it. It’s happening since I installed guix.

Someone (switchy) covered exactly this in the guix irc.

This all applies to your config.scm.

Along with any of your other (use modules ...) Include (gnu services dbus).

Then put in a definition for polkit’s service config (or add it to your existing one if you’ve got one):

;; allow users in the "netdev" group to control NetworkManager
(define polkit-network
 (file-union
   "polkit-network"
   `(("share/polkit-1/rules.d/network.rules"
      ,(plain-file
        "network.rules" "\
polkit.addRule(function(action, subject) {
  if (action.id.indexOf(\"org.freedesktop.NetworkManager.\") == 0 && subject.isInGroup(\"netdev\")) {
    return polkit.Result.YES;
  }
});\n")))))

And then in your services add a polkit-service-type that uses it:

    (simple-service 'polkit-network polkit-service-type (list polkit-network))

Rebuild (sudo -i guix system reconfigure /etc/config.scm or equivalent for your setup) and reboot and you should be set.

You could also just sudo herd restart dbus-system instead of rebooting, which will instantly kill your wayland or X session and drop you back at the display manager login after a little while.