nixos: fix avahi connectivity for shairport-sync module

The shairport-sync service currently fails to start with the error

shairport avahi_entry_group_new failed

This problem seems to have been introduced by

cdd7310a50

After some trial and error I concluded that the attached commit is a minimal
fix.
This commit is contained in:
Anders Lundstedt 2016-07-08 16:01:35 +02:00 committed by Bjørn Forsman
parent b16d8b2ada
commit 5f3c4bd11e

View File

@ -52,6 +52,8 @@ in
config = mkIf config.services.shairport-sync.enable {
services.avahi.enable = true;
services.avahi.publish.enable = true;
services.avahi.publish.userServices = true;
users.extraUsers = singleton
{ name = cfg.user;