From a2bbcf7f556fe51e0541b8dc295442a98f79257b Mon Sep 17 00:00:00 2001 From: Noah Masur <7386960+nmasur@users.noreply.github.com> Date: Wed, 19 Apr 2023 16:50:19 -0400 Subject: [PATCH] try reenabling avahi used public instead of publish accidentally --- modules/nixos/hardware/networking.nix | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/modules/nixos/hardware/networking.nix b/modules/nixos/hardware/networking.nix index 26dce31..e78040d 100644 --- a/modules/nixos/hardware/networking.nix +++ b/modules/nixos/hardware/networking.nix @@ -12,11 +12,16 @@ networking.firewall.allowPing = lib.mkIf config.server true; # DNS service discovery - services.avahi.enable = true; - # services.avahi.public.enable = true; - # services.avahi.public.domain = true; - # services.avahi.public.addresses = true; - # services.avahi.domainName = "local"; + services.avahi = { + enable = true; + domainName = "local"; + publish = { + enable = true; + addresses = true; + domain = true; + workstation = true; + }; + }; # Resolve local hostnames using Avahi DNS services.avahi.nssmdns = true;