···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}"}
02728 [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.
0000000065 '';
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}"}
2829 [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