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.

(cherry picked from commit 5f3c4bd11e)
This commit is contained in:
Anders Lundstedt 2016-07-08 16:01:35 +02:00 committed by Bjørn Forsman
parent 89d1d487b5
commit 6320299e16

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;