diff options
author | Corbin <cds@corbinsimpson.com> | 2016-05-28 18:01:47 -0700 |
---|---|---|
committer | Franz Pletz <fpletz@fnordicwalking.de> | 2016-06-26 23:15:39 +0200 |
commit | 45a066512e362eecb4cc2c2494f516b844179281 (patch) | |
tree | 583726e5edac89c08e539c08bfc35731e6553531 /nixos/modules/services/networking/avahi-daemon.nix | |
parent | a31e07fc112c1c9b00b748a85f76a4c4c203a03d (diff) | |
download | nixpkgs-45a066512e362eecb4cc2c2494f516b844179281.tar nixpkgs-45a066512e362eecb4cc2c2494f516b844179281.tar.gz nixpkgs-45a066512e362eecb4cc2c2494f516b844179281.tar.bz2 nixpkgs-45a066512e362eecb4cc2c2494f516b844179281.tar.lz nixpkgs-45a066512e362eecb4cc2c2494f516b844179281.tar.xz nixpkgs-45a066512e362eecb4cc2c2494f516b844179281.tar.zst nixpkgs-45a066512e362eecb4cc2c2494f516b844179281.zip |
services/avahi: Add domainName setting
Fixes #15795.
Diffstat (limited to 'nixos/modules/services/networking/avahi-daemon.nix')
-rw-r--r-- | nixos/modules/services/networking/avahi-daemon.nix | 9 |
1 files changed, 9 insertions, 0 deletions
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 = '' |