2023-08-23 14:30:15 +09:00
|
|
|
{ config, pkgs, ... }: {
|
|
|
|
# Enable tailscale and open port 22 on it
|
2023-08-31 14:54:16 +09:00
|
|
|
services.tailscale = {
|
|
|
|
enable = true;
|
|
|
|
interfaceName = "tailscale0";
|
|
|
|
extraUpFlags = [
|
2023-09-15 23:50:03 +09:00
|
|
|
"--login-server=https://headscale.sysctl.io"
|
2023-08-31 20:29:14 +09:00
|
|
|
"--accept-dns"
|
|
|
|
"--accept-routes"
|
2023-08-31 14:54:16 +09:00
|
|
|
];
|
|
|
|
};
|
2023-08-23 17:14:13 +09:00
|
|
|
networking.firewall.interfaces.tailscale0.allowedTCPPorts = [ 22 ];
|
2023-08-23 14:30:15 +09:00
|
|
|
}
|