Make NSS modules visible to `avahi-daemon'.

It allows it to know whether `libnss-mdns' is available, which clients
can ask via the `IsNSSSupportAvailable' D-Bus method.

svn path=/nixos/branches/modular-nixos/; revision=16125
This commit is contained in:
Ludovic Courtès 2009-07-01 12:27:35 +00:00
parent e2e373b89c
commit 74738de1f8

View File

@ -112,6 +112,11 @@ let
respawn
script
export PATH="${avahi}/bin:${avahi}/sbin:$PATH"
# Make NSS modules visible so that `avahi_nss_support ()' can
# return a sensible value.
export LD_LIBRARY_PATH="${config.system.nssModules.path}"
exec ${avahi}/sbin/avahi-daemon --daemonize -f "${avahiDaemonConf}"
end script
'';