I’m trying to publish some custom avahi service, however populating /etc/avahi/services has no effect, the daemon publish only the ssh and sftp-ssh services configured in /nix/store/cah5…/avahi-0.7/etc/avahi/services
Did you try to set some of these options? NixOS Search Typically a service is configured from the nixos module, I don’t know how you generated the /etc/avahi/services file.
Looking at the binary it seems that it read service files from $out/etc/avahi instead
of /etc/avahi. This is a packaging bug in nixpkgs and needs to be fixed.
$ strings /run/current-system/sw/bin/avahi-daemon | grep /etc/avahi
/nix/store/3dzww250xrxn81kl56v3f5r8122x3pmj-avahi-0.7/etc/avahi/services
/nix/store/3dzww250xrxn81kl56v3f5r8122x3pmj-avahi-0.7/etc/avahi
/nix/store/3dzww250xrxn81kl56v3f5r8122x3pmj-avahi-0.7/etc/avahi/avahi-daemon.conf
/nix/store/3dzww250xrxn81kl56v3f5r8122x3pmj-avahi-0.7/etc/avahi/avahi-daemon.conf
/nix/store/3dzww250xrxn81kl56v3f5r8122x3pmj-avahi-0.7/etc/avahi/services/*.service
Not enough memory to read service directory /nix/store/3dzww250xrxn81kl56v3f5r8122x3pmj-avahi-0.7/etc/avahi/services.
No service file found in /nix/store/3dzww250xrxn81kl56v3f5r8122x3pmj-avahi-0.7/etc/avahi/services.
Failed to read /nix/store/3dzww250xrxn81kl56v3f5r8122x3pmj-avahi-0.7/etc/avahi/services.
/nix/store/3dzww250xrxn81kl56v3f5r8122x3pmj-avahi-0.7/etc/avahi/hosts
yes. Maybe you can also manage to fix it. The configure flag alone will not be sufficient because the build system will try to install into /etc then. This must be patched in the build system or installation will fail