From 6d247f81b4f304c0b5de6c8c89817964081353e6 Mon Sep 17 00:00:00 2001 From: Rickard Nilsson Date: Thu, 3 Oct 2013 14:45:25 +0200 Subject: [PATCH] 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) --- pkgs/tools/networking/network-manager/default.nix | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pkgs/tools/networking/network-manager/default.nix b/pkgs/tools/networking/network-manager/default.nix index adc1cd7481b8..25494d75f0dc 100644 --- a/pkgs/tools/networking/network-manager/default.nix +++ b/pkgs/tools/networking/network-manager/default.nix @@ -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; {