nixos-configuration/hosts/iron/services/avahi.nix
Jakob Lechner 03c6fa9872 Don't open firewall for Avahi
instead, use the already configured rule to allow it only on the local
network.
2025-04-07 23:22:55 +02:00

19 lines
419 B
Nix

args@{ lib, pkgs, config, custom-utils, ... }:
let
interfaces = import ../interfaces.nix;
in
{
services.avahi = {
enable = true;
allowInterfaces = [ interfaces.lan ];
publish.domain = true;
publish.enable = true;
publish.userServices = true;
publish.workstation = true;
openFirewall = false;
};
networking.firewall.interfaces."${interfaces.lan}".allowedUDPPorts = [
5353
];
}