2024-11-20 20:32:38 +01:00
|
|
|
{ ... }:
|
|
|
|
{
|
2024-11-15 21:58:10 +01:00
|
|
|
services = {
|
|
|
|
avahi = {
|
|
|
|
enable = true;
|
|
|
|
openFirewall = true;
|
|
|
|
publish = {
|
|
|
|
enable = true;
|
|
|
|
workstation = true;
|
|
|
|
userServices = true;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
cron.enable = false;
|
|
|
|
};
|
|
|
|
# udp5353 1024-65535
|
|
|
|
|
2024-11-20 20:32:38 +01:00
|
|
|
networking.firewall =
|
|
|
|
let
|
|
|
|
range = {
|
|
|
|
from = 1024;
|
|
|
|
to = 65535;
|
|
|
|
};
|
|
|
|
in
|
|
|
|
{
|
|
|
|
allowedUDPPorts = [ 5353 ];
|
|
|
|
allowedUDPPortRanges = [ range ];
|
|
|
|
allowedTCPPortRanges = [ range ];
|
2024-11-15 21:58:10 +01:00
|
|
|
};
|
|
|
|
networking.dhcpcd.extraConfig = "noarp";
|
|
|
|
system.stateVersion = "24.05";
|
|
|
|
}
|