git.iko.soy/typeable/nixpkgs
on master help sign in
NetworkManager.service -> network-manager.service
91bdca3Domen Kožar
nixos/doc/manual/configuration/network-manager.xml+1−1
@@ -13,7 +13,7 @@ use NetworkManager. You can enable NetworkManager by setting:
13services.networkmanager.enable = true;
13services.networkmanager.enable = true;
14</programlisting>
14</programlisting>
15
15
16−Some desktop managers (e.g., GNOME) enable NetworkManager
16+some desktop managers (e.g., GNOME) enable NetworkManager
17automatically for you.</para>
17automatically for you.</para>
18
18
19<para>All users that should have permission to change network settings
19<para>All users that should have permission to change network settings
nixos/doc/manual/installation/installing.xml+3−3
@@ -25,14 +25,14 @@
25 run <command>start display-manager</command> to start KDE.</para></listitem>
25 run <command>start display-manager</command> to start KDE.</para></listitem>
26
26
27 <listitem><para>The boot process should have brought up networking (check
27 <listitem><para>The boot process should have brought up networking (check
28− <command>ifconfig</command>). Networking is necessary for the
28+ <command>ip a</command>). Networking is necessary for the
29 installer, since it will download lots of stuff (such as source
29 installer, since it will download lots of stuff (such as source
30 tarballs or Nixpkgs channel binaries). It’s best if you have a DHCP
30 tarballs or Nixpkgs channel binaries). It’s best if you have a DHCP
31 server on your network. Otherwise configure networking manually
31 server on your network. Otherwise configure networking manually
32 using <command>ifconfig</command>.</para>
32 using <command>ifconfig</command>.</para>
33 <para>To manually configure the network on the graphical installer,
33 <para>To manually configure the network on the graphical installer,
34− first disable NetworkManager with
34+ first disable network-manager with
35− <command>stop NetworkManager</command>.</para></listitem>
35+ <command>systemctl stop network-manager</command>.</para></listitem>
36
36
37 <listitem><para>The NixOS installer doesn’t do any partitioning or
37 <listitem><para>The NixOS installer doesn’t do any partitioning or
38 formatting yet, so you need to that yourself. Use the following
38 formatting yet, so you need to that yourself. Use the following
nixos/modules/services/networking/networkmanager.nix+3−3
@@ -177,8 +177,8 @@ in {
177 systemd.services."networkmanager-init" = {
177 systemd.services."networkmanager-init" = {
178 description = "NetworkManager initialisation";
178 description = "NetworkManager initialisation";
179 wantedBy = [ "network.target" ];
179 wantedBy = [ "network.target" ];
180− wants = [ "NetworkManager.service" ];
180+ wants = [ "network-manager.service" ];
181− before = [ "NetworkManager.service" ];
181+ before = [ "network-manager.service" ];
182 script = ''
182 script = ''
183 mkdir -m 700 -p /etc/NetworkManager/system-connections
183 mkdir -m 700 -p /etc/NetworkManager/system-connections
184 mkdir -m 755 -p ${stateDirs}
184 mkdir -m 755 -p ${stateDirs}
@@ -193,7 +193,7 @@ in {
193 };
193 };
194
194
195 powerManagement.resumeCommands = ''
195 powerManagement.resumeCommands = ''
196− systemctl restart NetworkManager
196+ Systemctl restart network-manager
197 '';
197 '';
198
198
199 security.polkit.extraConfig = polkitConf;
199 security.polkit.extraConfig = polkitConf;
pkgs/tools/networking/network-manager/default.nix+5−1
@@ -64,10 +64,14 @@ stdenv.mkDerivation rec {
64 # FIXME: Workaround until NixOS' dbus+systemd supports at_console policy
64 # FIXME: Workaround until NixOS' dbus+systemd supports at_console policy
65 substituteInPlace $out/etc/dbus-1/system.d/org.freedesktop.NetworkManager.conf --replace 'at_console="true"' 'group="networkmanager"'
65 substituteInPlace $out/etc/dbus-1/system.d/org.freedesktop.NetworkManager.conf --replace 'at_console="true"' 'group="networkmanager"'
66
66
67+ # rename to network-manager to be in style
68+ mv $out/etc/systemd/system/NetworkManager.service $out/etc/systemd/system/network-manager.service
69+ echo "Alias=NetworkManager.service" >> $out/etc/systemd/system/dbus-org.freedesktop.nm-dispatcher.service
70+
67 # systemd in NixOS doesn't use `systemctl enable`, so we need to establish
71 # systemd in NixOS doesn't use `systemctl enable`, so we need to establish
68 # aliases ourselves.
72 # aliases ourselves.
69 ln -s $out/etc/systemd/system/NetworkManager-dispatcher.service $out/etc/systemd/system/dbus-org.freedesktop.nm-dispatcher.service
73 ln -s $out/etc/systemd/system/NetworkManager-dispatcher.service $out/etc/systemd/system/dbus-org.freedesktop.nm-dispatcher.service
70− ln -s $out/etc/systemd/system/NetworkManager.service $out/etc/systemd/system/dbus-org.freedesktop.NetworkManager.service
74+ ln -s $out/etc/systemd/system/network-manager.service $out/etc/systemd/system/dbus-org.freedesktop.NetworkManager.service
71 '';
75 '';
72
76
73 meta = with stdenv.lib; {
77 meta = with stdenv.lib; {