From ca5e03a4e9c2346a42a3287f054eb96119da6b9c Mon Sep 17 00:00:00 2001 From: Franck Cuny Date: Wed, 10 May 2023 18:27:57 -0700 Subject: hosts/tahoe: move avahi configuration here --- hosts/carmel/default.nix | 10 ++++++++++ hosts/carmel/services.nix | 6 ------ 2 files changed, 10 insertions(+), 6 deletions(-) (limited to 'hosts/carmel') diff --git a/hosts/carmel/default.nix b/hosts/carmel/default.nix index 1006f1e..8c68e20 100644 --- a/hosts/carmel/default.nix +++ b/hosts/carmel/default.nix @@ -11,6 +11,16 @@ "${self}/profiles/nginx.nix" ]; + services.avahi = { + enable = true; + # Important to resolve .local domains of printers, otherwise you get an error + # like "Impossible to connect to XXX.local: Name or service not known" + nssmdns = true; + reflector = true; + interfaces = [ "mgmt0" "iot" ]; + openFirewall = true; + }; + # This value determines the NixOS release from which the default # settings for stateful data, like file locations and database versions # on your system were taken. It‘s perfectly fine and recommended to leave diff --git a/hosts/carmel/services.nix b/hosts/carmel/services.nix index 4c17fd8..bde7523 100644 --- a/hosts/carmel/services.nix +++ b/hosts/carmel/services.nix @@ -4,12 +4,6 @@ node-exporter.enable = true; promtail.enable = true; }; - - avahi = { - enable = true; - withReflector = true; - interfaces = [ "mgmt0" "iot" ]; - }; }; services.dnsmasq = { -- cgit 1.4.1