2024-02-29 17:06:55 -05:00
|
|
|
{
|
2024-04-07 22:16:33 -04:00
|
|
|
config,
|
|
|
|
pkgs,
|
|
|
|
...
|
|
|
|
}: {
|
2024-02-29 17:06:55 -05:00
|
|
|
# networking.wireless.enable = true; # Enables wireless support via wpa_supplicant.
|
2024-03-16 13:18:17 -04:00
|
|
|
networking = {
|
|
|
|
networkmanager.enable = true;
|
2024-03-24 14:07:13 -04:00
|
|
|
|
2024-03-16 13:18:17 -04:00
|
|
|
firewall.allowedTCPPortRanges = [
|
|
|
|
# Soulseek
|
2024-03-24 14:07:13 -04:00
|
|
|
{
|
|
|
|
from = 2234;
|
|
|
|
to = 2239;
|
|
|
|
}
|
2024-03-16 13:18:17 -04:00
|
|
|
];
|
|
|
|
firewall.allowedUDPPortRanges = [
|
|
|
|
# Soulseek
|
2024-03-24 14:07:13 -04:00
|
|
|
{
|
|
|
|
from = 2234;
|
|
|
|
to = 2239;
|
|
|
|
}
|
2024-03-16 13:18:17 -04:00
|
|
|
];
|
|
|
|
};
|
2024-02-29 17:06:55 -05:00
|
|
|
|
2024-03-16 13:18:17 -04:00
|
|
|
services = {
|
|
|
|
# Enable avahi for auto network discovery.
|
|
|
|
avahi = {
|
|
|
|
enable = true;
|
|
|
|
nssmdns4 = true;
|
|
|
|
openFirewall = true;
|
|
|
|
publish = {
|
|
|
|
enable = true;
|
2024-04-07 23:41:53 -04:00
|
|
|
addresses = true;
|
|
|
|
userServices = true;
|
2024-03-16 13:18:17 -04:00
|
|
|
workstation = true;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
# Enable remote connections with SSH.
|
|
|
|
openssh = {
|
|
|
|
enable = true;
|
|
|
|
openFirewall = true;
|
|
|
|
};
|
|
|
|
# Enable printing.
|
|
|
|
printing.enable = true;
|
|
|
|
# Syncthing runs as a user service, but needs its ports open here.
|
|
|
|
syncthing.openDefaultPorts = true;
|
|
|
|
# Enable tailscale for easy Wireguard VPNs on a tailnet.
|
|
|
|
tailscale.enable = true;
|
|
|
|
};
|
2024-03-23 20:21:49 -04:00
|
|
|
}
|