nixos-configuration/hosts/iron/services/avahi.nix
2025-04-16 22:54:28 +02:00

21 lines
418 B
Nix

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