summary refs log tree commit diff
path: root/nixos
diff options
context:
space:
mode:
authorAnders Lundstedt <git@anderslundstedt.se>2016-07-08 16:01:35 +0200
committerBjørn Forsman <bjorn.forsman@gmail.com>2016-07-08 16:22:51 +0200
commit5f3c4bd11ebdd88d56dbf81ebb997832c7b82f3b (patch)
tree9b4736ee39d2920d2da66881ffc5472201b1ac8d /nixos
parentb16d8b2ada0d0cee0e3f85cf8808d8b8c8578d48 (diff)
downloadnixlib-5f3c4bd11ebdd88d56dbf81ebb997832c7b82f3b.tar
nixlib-5f3c4bd11ebdd88d56dbf81ebb997832c7b82f3b.tar.gz
nixlib-5f3c4bd11ebdd88d56dbf81ebb997832c7b82f3b.tar.bz2
nixlib-5f3c4bd11ebdd88d56dbf81ebb997832c7b82f3b.tar.lz
nixlib-5f3c4bd11ebdd88d56dbf81ebb997832c7b82f3b.tar.xz
nixlib-5f3c4bd11ebdd88d56dbf81ebb997832c7b82f3b.tar.zst
nixlib-5f3c4bd11ebdd88d56dbf81ebb997832c7b82f3b.zip
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.
Diffstat (limited to 'nixos')
-rw-r--r--nixos/modules/services/networking/shairport-sync.nix2
1 files changed, 2 insertions, 0 deletions
diff --git a/nixos/modules/services/networking/shairport-sync.nix b/nixos/modules/services/networking/shairport-sync.nix
index a523e66d09b9..908de9efd6fb 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;