From 45a066512e362eecb4cc2c2494f516b844179281 Mon Sep 17 00:00:00 2001 From: Corbin Date: Sat, 28 May 2016 18:01:47 -0700 Subject: [PATCH] services/avahi: Add domainName setting Fixes #15795. --- nixos/modules/services/networking/avahi-daemon.nix | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/nixos/modules/services/networking/avahi-daemon.nix b/nixos/modules/services/networking/avahi-daemon.nix index 8b178ee9398..7650f45c557 100644 --- a/nixos/modules/services/networking/avahi-daemon.nix +++ b/nixos/modules/services/networking/avahi-daemon.nix @@ -24,6 +24,7 @@ let use-ipv4=${if ipv4 then "yes" else "no"} use-ipv6=${if ipv6 then "yes" else "no"} ${optionalString (interfaces!=null) "allow-interfaces=${concatStringsSep "," interfaces}"} + ${optionalString (domainName!=null) "domain-name=${domainName}"} [wide-area] enable-wide-area=${if wideArea then "yes" else "no"} @@ -65,6 +66,14 @@ in ''; }; + domainName = mkOption { + type = types.str; + default = "local"; + description = '' + Domain name for all advertisements. + ''; + }; + browseDomains = mkOption { default = [ "0pointer.de" "zeroconf.org" ]; description = ''