From 0b8a6e787cb4fd45731781d78ac0f4a21f4e9543 Mon Sep 17 00:00:00 2001 From: Klemens Nanni Date: Mon, 26 Oct 2020 04:01:07 +0100 Subject: [PATCH] nixos/avahi: Enable IPv6 by default Treat it the same as IPv4 (I'm tempted to disable IPv4 by default); this is the only option I still need to set manually to enjoy IPv6-only networks including printer discovery! --- nixos/modules/services/networking/avahi-daemon.nix | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/nixos/modules/services/networking/avahi-daemon.nix b/nixos/modules/services/networking/avahi-daemon.nix index 2900c37f990f..0b7d5575c11f 100644 --- a/nixos/modules/services/networking/avahi-daemon.nix +++ b/nixos/modules/services/networking/avahi-daemon.nix @@ -86,7 +86,8 @@ in ipv6 = mkOption { type = types.bool; - default = false; + default = config.networking.enableIPv6; + defaultText = "config.networking.enableIPv6"; description = "Whether to use IPv6."; };