services/avahi: Add domainName setting

Fixes #15795.

authored by

Corbin and committed by
Franz Pletz
45a06651 a31e07fc

+9
+9
nixos/modules/services/networking/avahi-daemon.nix
··· 24 24 use-ipv4=${if ipv4 then "yes" else "no"} 25 25 use-ipv6=${if ipv6 then "yes" else "no"} 26 26 ${optionalString (interfaces!=null) "allow-interfaces=${concatStringsSep "," interfaces}"} 27 + ${optionalString (domainName!=null) "domain-name=${domainName}"} 27 28 28 29 [wide-area] 29 30 enable-wide-area=${if wideArea then "yes" else "no"} ··· 62 63 description = '' 63 64 Host name advertised on the LAN. If not set, avahi will use the value 64 65 of config.networking.hostName. 66 + ''; 67 + }; 68 + 69 + domainName = mkOption { 70 + type = types.str; 71 + default = "local"; 72 + description = '' 73 + Domain name for all advertisements. 65 74 ''; 66 75 }; 67 76