NetworkManager: cooperate better with systemd

This commit is contained in:
Rickard Nilsson 2013-01-03 18:14:38 +01:00
parent db292a74c0
commit 38a14fac65

View File

@ -31,7 +31,8 @@ stdenv.mkDerivation rec {
"--with-dbus-sys-dir=\${out}/etc/dbus-1/system.d"
"--with-crypto=gnutls" "--disable-more-warnings"
"--with-systemdsystemunitdir=$(out)/etc/systemd/system"
"--with-kernel-firmware-dir=/run/current-system/firmware" ];
"--with-kernel-firmware-dir=/run/current-system/firmware"
"--with-session-tracking=systemd" ];
buildInputs = [ wirelesstools udev libnl libuuid polkit ppp xz ];
@ -55,6 +56,9 @@ stdenv.mkDerivation rec {
postInstall =
''
mkdir -p $out/lib/NetworkManager
# 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"'
'';
meta = with stdenv.lib; {