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 use-ipv4=${if ipv4 then "yes" else "no"} 25 use-ipv6=${if ipv6 then "yes" else "no"} 26 ${optionalString (interfaces!=null) "allow-interfaces=${concatStringsSep "," interfaces}"} 27 28 [wide-area] 29 enable-wide-area=${if wideArea then "yes" else "no"} ··· 62 description = '' 63 Host name advertised on the LAN. If not set, avahi will use the value 64 of config.networking.hostName. 65 ''; 66 }; 67
··· 24 use-ipv4=${if ipv4 then "yes" else "no"} 25 use-ipv6=${if ipv6 then "yes" else "no"} 26 ${optionalString (interfaces!=null) "allow-interfaces=${concatStringsSep "," interfaces}"} 27 + ${optionalString (domainName!=null) "domain-name=${domainName}"} 28 29 [wide-area] 30 enable-wide-area=${if wideArea then "yes" else "no"} ··· 63 description = '' 64 Host name advertised on the LAN. If not set, avahi will use the value 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. 74 ''; 75 }; 76