[Nix-dev] Various NetworkManager (and KDE) problems

Daniel Hlynskyi abcz2.uprola at gmail.com
Tue Aug 6 17:16:18 CEST 2013


1. I am trying to switch from wpa_supplicant to NetworkManager. I have
this in configuration.nix/networking:

    #wireless = {
    #  enable = true;
    #  driver = "wext";
    #  interfaces = [ "wlp1s0" ];
    #};
    networkmanager.enable = true;

Though NetworkManager.service fails after rebuild:

# nixos-rebuild switch
building Nix...
building the system configuration...
updating GRUB 2 menu...
stopping the following units: local-fs.target, network-interfaces.target,
remote-fs.target, wpa_supplicant.service
activating the configuration...
setting up /etc...
updating groups...
updating users...
starting the following units: default.target, getty.target,
graphical.target, ip-up.target, local-fs.target, multi-user.target,
network-interfaces.target, network.target, paths.target, remote-fs.target,
sockets.target, sound.target, swap.target, timers.target
warning: the following units failed: NetworkManager.service

NetworkManager.service - Network Manager
   Loaded: loaded
(/nix/store/ms9kjcrsnjkc8l8hi1vnl01rsdwxmf7a-network-manager-0.9.8.0/etc/systemd/system/NetworkManager.service)
   Active: failed (Result: exit-code) since Tue 2013-08-06 16:46:44 CET;
164ms ago
  Process: 9731
ExecStart=/nix/store/ms9kjcrsnjkc8l8hi1vnl01rsdwxmf7a-network-manager-0.9.8.0/sbin/NetworkManager
--no-daemon (code=exited, status=1/FAILURE)

Aug 06 16:46:44 localhosted NetworkManager[9731]: <error>
[1375807604.607452] [nm-dbus-manager.c:332]
nm_dbus_manager_start_service(): Could not acquire the NetworkManager
service.
Aug 06 16:46:44 localhosted NetworkManager[9731]: <error>
[1375807604.608954] [main.c:599] main(): failed to start the dbus service.
Aug 06 16:46:44 localhosted systemd[1]: NetworkManager.service: main
process exited, code=exited, status=1/FAILURE
Aug 06 16:46:44 localhosted systemd[1]: Failed to start Network Manager.
Aug 06 16:46:44 localhosted systemd[1]: Unit NetworkManager.service entered
failed state.


Anyway, after that I can do
   systemctl start NetworkManager.service
and it starts without complaining. Arch-users say it is a known
problem with systemd/networkmanager. Is there a way to make it start
automatically on NixOS?

2. The KDE applet networkmanagement fails to start

# networkmanagement_configshell --connection dd-wrt create
QDBusConnection: session D-Bus connection created before
QCoreApplication. Application may misbehave.
networkmanagement_configshell(1910): KUniqueApplication: Cannot find
the D-Bus session server:  "Did not receive a reply. Possible causes
include: the remote application did not send a reply, the message bus
security policy blocked the reply, the reply timeout expired, or the
network connection was broken."

networkmanagement_configshell(1909): KUniqueApplication: Pipe closed
unexpectedly.

Though, there is a workaround (thanks to Arch users!):
    # export $(dbus-launch)

I don't know why, but it solves problems with NetworkManagement applet
and ocular (yes, ocular cannot open documents without this hack). How
can I add this command at system startup or maybe it is a bug and will
be fixed soon?


More information about the nix-dev mailing list