networkmanager: fix link-local ip addresses
NetworkManager needs an additional avahi-user to use link-local IPv4 (and probably IPv6) addresses. avahi-autoipd also needs to be patched to the right path.
This commit is contained in:
parent
edeb5480fc
commit
70c02402c8
@ -252,6 +252,7 @@
|
|||||||
gammu-smsd = 228;
|
gammu-smsd = 228;
|
||||||
pdnsd = 229;
|
pdnsd = 229;
|
||||||
octoprint = 230;
|
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!
|
# 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 = [{
|
users.extraUsers = [{
|
||||||
name = "nm-openvpn";
|
name = "nm-openvpn";
|
||||||
uid = config.ids.uids.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;
|
systemd.packages = cfg.packages;
|
||||||
|
@ -20,6 +20,8 @@ stdenv.mkDerivation rec {
|
|||||||
--replace /bin/sh ${stdenv.shell} \
|
--replace /bin/sh ${stdenv.shell} \
|
||||||
--replace /usr/sbin/ethtool ${ethtool}/sbin/ethtool \
|
--replace /usr/sbin/ethtool ${ethtool}/sbin/ethtool \
|
||||||
--replace /bin/sed ${gnused}/bin/sed
|
--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"
|
configureFlags="$configureFlags --with-udev-dir=$out/lib/udev"
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user