NetworkManager: cooperate better with systemd
This commit is contained in:
parent
db292a74c0
commit
38a14fac65
1 changed files with 5 additions and 1 deletions
|
@ -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; {
|
||||
|
|
Loading…
Reference in a new issue