help-guix
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Network Manager Service


From: Ludovic Courtès
Subject: Re: Network Manager Service
Date: Thu, 24 Nov 2016 22:02:58 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1 (gnu/linux)

Chris Marusich <address@hidden> skribis:

> address@hidden (Ludovic Courtès) writes:
>
>> Oops, I had left an extra #:use-module line in there, sorry!
>>
>> Could you try this one?
>
> On my GuixSD system, The new patch works with one problem: Network
> Manager still does not show any wireless networks.  I solved this by
> adding wpa-supplicant-service (this service was mentioned in the manual,
> but it was actually missing from code!) and making
> 'network-manager-shepherd-service' require it.  Here's the updated
> patch:

Good catch!  I pushed these changes like this:

cbf1024 * doc: Document 'wpa-supplicant-service-type'.
030f59f * services: network-manager: Depend on 'wpa-supplicant'.
89007a0 * services: network-manager: Install polkit actions.
2e32869 * services: Move polkit to (gnu services dbus).

> However, there is one problem: Even if I select "Connect automatically"
> (in the "Identity" section of the settings page within Network Manager
> for my wireless network), Network Manager does not automatically connect
> to the network.  I'm not sure why.

No messages?  Could it be that it fails to record settings?

> I would love to see this patch go into master, but I have a few
> concerns (which are probably non-blocking):
>
> * It looks like it's possible to have an "incomplete deployment" of
>   services in GuixSD.  For example, if you add (e.g.,
>   network-manager-service) without also adding wpa-supplicant-service,
>   the 'reconfigure' will succeed, but the wireless aspects of Network
>   Manager will not work.  This seems undesirable.  In the same way that
>   Guix/Nix ensures "complete deployment" of components in the store, is
>   there a way we can ensure complete deployment of services in GuixSD?

Attempts to define a Shepherd service that depends on a undefined
service leads to an error.

So for example, if you have a ‘network-manager-service-type’ instead but
there is nothing defining a ‘wpa-supplicant’ Shepherd service, you get
an error when running ‘guix system’.

> * Should we update the desktop templates in
>   gnu/system/examples/desktop.tmpl?  It looks like it's impossible to
>   add both wicd-service and network-manager-service to the same config
>   file.  Therefore, perhaps we should supply a "gnome-desktop.tmpl"
>   example for those who want the GNOME desktop specifically?  The
>   changes necessary to get Network Manager working with the
>   "desktop.tmpl" might not be easy for someone who is new to Guile.

Once you have reported total success with Network Manager :-), we can
certainly remove Wicd from ‘%desktop-services’ and add it instead!

> * I'm not sure (yet) how to investigate why Network Manager is failing
>   to automatically connect.  If you have any ideas, please let me know.

Most GNOME programs use GSettings to save their settings, and that has a
tendency to not work if the schemas aren’t well aligned with the stars.

So I would suggest running the NM application/applet from a terminal so
you can see any warnings it spits out (or maybe they go to
~/.xsession-errors otherwise?), and see if that might be a problem.

Perhaps the schema hypothesis doesn’t hold because
network-manager-applet is already built with
‘glib-or-gtk-build-system’.  Dunno.

Thanks,
Ludo’.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]