2023-07-12 13:52:15 +02:00
|
|
|
{pkgs, config, hostname, ...}: {
|
2023-08-21 06:21:01 +02:00
|
|
|
# Enable networking with NM and automatically allow port 22 over Tailscale
|
2023-07-12 16:43:21 +02:00
|
|
|
|
2023-07-12 13:52:15 +02:00
|
|
|
networking = {
|
|
|
|
networkmanager = {
|
|
|
|
enable = true;
|
|
|
|
};
|
|
|
|
|
|
|
|
enableIPv6 = false;
|
|
|
|
firewall = {
|
|
|
|
enable = true;
|
|
|
|
allowedTCPPorts = [ ];
|
|
|
|
allowedUDPPorts = [ ];
|
|
|
|
interfaces.tailscale0.allowedTCPPorts = [ 22 ];
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|