Skip to content

Commit

Permalink
modules/avahi: Sync module defaults with upstream
Browse files Browse the repository at this point in the history
This contribution syncs the module's default with upstream
avahi's defaults.
  • Loading branch information
frederictobiasc committed Dec 3, 2024
1 parent cba792e commit b37470f
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 7 deletions.
2 changes: 2 additions & 0 deletions nixos/doc/manual/release-notes/rl-2505.section.md
Original file line number Diff line number Diff line change
Expand Up @@ -72,4 +72,6 @@

- `bind.cacheNetworks` now only controls access for recursive queries, where it previously controlled access for all queries.

- The defaults of `services.avahi.publish` have been updated to upstream's default.

<!-- To avoid merge conflicts, consider adding your item at an arbitrary place in the list instead. -->
14 changes: 7 additions & 7 deletions nixos/modules/services/networking/avahi-daemon.nix
Original file line number Diff line number Diff line change
Expand Up @@ -175,25 +175,25 @@ in
publish = {
enable = lib.mkOption {
type = lib.types.bool;
default = false;
default = true;
description = "Whether to allow publishing in general.";
};

userServices = lib.mkOption {
type = lib.types.bool;
default = false;
default = true;
description = "Whether to publish user services. Will set `addresses=true`.";
};

addresses = lib.mkOption {
type = lib.types.bool;
default = false;
default = true;
description = "Whether to register mDNS address records for all local IP addresses.";
};

hinfo = lib.mkOption {
type = lib.types.bool;
default = false;
default = true;
description = ''
Whether to register a mDNS HINFO record which contains information about the
local operating system and CPU.
Expand All @@ -202,22 +202,22 @@ in

workstation = lib.mkOption {
type = lib.types.bool;
default = false;
default = true;
description = ''
Whether to register a service of type "_workstation._tcp" on the local LAN.
'';
};

domain = lib.mkOption {
type = lib.types.bool;
default = false;
default = true;
description = "Whether to announce the locally used domain name for browsing by other hosts.";
};
};

nssmdns4 = lib.mkOption {
type = lib.types.bool;
default = false;
default = true;
description = ''
Whether to enable the mDNS NSS (Name Service Switch) plug-in for IPv4.
Enabling it allows applications to resolve names in the `.local`
Expand Down

0 comments on commit b37470f

Please sign in to comment.