Merge pull request #13471 from Profpatsch/networkmanager-link-local

networkmanager: fix link-local ip addresses
This commit is contained in:
Arseniy Seroka 2016-02-27 02:55:31 +03:00
commit 766ad682f1
3 changed files with 8 additions and 0 deletions

@ -252,6 +252,7 @@
gammu-smsd = 228;
pdnsd = 229;
octoprint = 230;
avahi-autoipd = 231;
# When adding a uid, make sure it doesn't match an existing gid. And don't use uids above 399!

@ -228,6 +228,11 @@ in {
users.extraUsers = [{
name = "nm-openvpn";
uid = config.ids.uids.nm-openvpn;
}
{
# to enable link-local connections
name = "avahi-autoipd";
uid = config.ids.uids.avahi-autoipd;
}];
systemd.packages = cfg.packages;

@ -20,6 +20,8 @@ stdenv.mkDerivation rec {
--replace /bin/sh ${stdenv.shell} \
--replace /usr/sbin/ethtool ${ethtool}/sbin/ethtool \
--replace /bin/sed ${gnused}/bin/sed
# to enable link-local connections
substituteInPlace src/devices/nm-device.c --replace '("avahi-autoipd", NULL, NULL)' '("avahi-autoipd", &"${avahi}/sbin/avahi-autoipd", NULL)'
configureFlags="$configureFlags --with-udev-dir=$out/lib/udev"
'';