From 54dc097b44e24cf56d458d7f8addb9ca8f79e445 Mon Sep 17 00:00:00 2001 From: clerie Date: Tue, 12 Nov 2024 21:09:45 +0100 Subject: [PATCH] hosts/carbon: Enable mDNS reflection between net-heimnetz and net-iot --- hosts/carbon/configuration.nix | 1 + hosts/carbon/mdns.nix | 17 +++++++++++++++++ 2 files changed, 18 insertions(+) create mode 100644 hosts/carbon/mdns.nix diff --git a/hosts/carbon/configuration.nix b/hosts/carbon/configuration.nix index a993d70..34efa5a 100644 --- a/hosts/carbon/configuration.nix +++ b/hosts/carbon/configuration.nix @@ -7,6 +7,7 @@ ../../configuration/router ./dns.nix + ./mdns.nix ./net-dsl.nix ./net-gastnetz.nix ./net-heimnetz.nix diff --git a/hosts/carbon/mdns.nix b/hosts/carbon/mdns.nix new file mode 100644 index 0000000..35a422b --- /dev/null +++ b/hosts/carbon/mdns.nix @@ -0,0 +1,17 @@ +{ pkgs, ... }: + +{ + + services.avahi = { + enable = true; + nssmdns4 = true; + + allowInterfaces = [ + "net-heimnetz" + "net-iot" + ]; + + reflector = true; + }; + +}