27 lines
450 B
Nix
27 lines
450 B
Nix
{ config, lib, pkgs, ... }:
|
|
|
|
{
|
|
# Enable zeroconf
|
|
services.avahi = {
|
|
enable = true;
|
|
nssmdns = true;
|
|
publish = {
|
|
enable = true;
|
|
userServices = true;
|
|
domain = true;
|
|
workstation = true;
|
|
};
|
|
reflector = true;
|
|
};
|
|
|
|
# Firewall configuration
|
|
networking.firewall = {
|
|
# Samba
|
|
allowedTCPPorts = [ 445 139 ];
|
|
allowedUDPPorts = [ 137 138 ];
|
|
};
|
|
|
|
# Disable IPv6
|
|
networking.enableIPv6 = false;
|
|
}
|