From 5f3c4bd11ebdd88d56dbf81ebb997832c7b82f3b Mon Sep 17 00:00:00 2001 From: Anders Lundstedt Date: Fri, 8 Jul 2016 16:01:35 +0200 Subject: [PATCH] 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 cdd7310a503481e3c40266be45b6b8256d95ecbd After some trial and error I concluded that the attached commit is a minimal fix. --- nixos/modules/services/networking/shairport-sync.nix | 2 ++ 1 file changed, 2 insertions(+) diff --git a/nixos/modules/services/networking/shairport-sync.nix b/nixos/modules/services/networking/shairport-sync.nix index a523e66d09b..908de9efd6f 100644 --- a/nixos/modules/services/networking/shairport-sync.nix +++ b/nixos/modules/services/networking/shairport-sync.nix @@ -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;