21 lines
418 B
Nix
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
|
|
];
|
|
}
|