blob: f12971f7ae570b95b3f4530c5a5705fdc15aa663 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
# LAN reachability and mDNS discovery shared by all machines.
{ ... }:
{
# Allow IPv4 ICMP echo requests so hosts can be found with ping.
networking.firewall.allowPing = true;
# Avahi/mDNS: publish <hostname>.local and resolve other *.local LAN names.
# Keep the multicast DNS firewall opening scoped to the Wi-Fi LAN interface.
networking.firewall.interfaces.wlp8s0.allowedUDPPorts = [ 5353 ];
services.avahi = {
enable = true;
nssmdns4 = true;
openFirewall = false;
allowInterfaces = [ "wlp8s0" ];
publish = {
enable = true;
addresses = true;
workstation = true;
};
};
}
|