network-manager: Rename dispatcher service

Rename NetworkManager-dispatcher.service to
dbus-org.freedesktop.nm-dispatcher.service so it is found by systemd (NixOS
doesn't handle the Alias directive in the unit file)
This commit is contained in:
Rickard Nilsson 2013-10-03 14:45:25 +02:00
parent 966f244292
commit 6d247f81b4

View File

@ -59,6 +59,9 @@ stdenv.mkDerivation rec {
# FIXME: Workaround until NixOS' dbus+systemd supports at_console policy
substituteInPlace $out/etc/dbus-1/system.d/org.freedesktop.NetworkManager.conf --replace 'at_console="true"' 'group="networkmanager"'
# As NixOS doesn't seem to handle systemd Aliases, we just rename the dispatcher service file
mv $out/etc/systemd/system/NetworkManager-dispatcher.service $out/etc/systemd/system/dbus-org.freedesktop.nm-dispatcher.service
'';
meta = with stdenv.lib; {