25 lines
388 B
Nix
25 lines
388 B
Nix
{
|
|
services.headscale = {
|
|
enable = true;
|
|
address = "0.0.0.0";
|
|
port = 8080;
|
|
settings = {
|
|
server_url = "http://0.0.0.0:8080";
|
|
dns.magic_dns = false;
|
|
dns.override_local_dns = false;
|
|
};
|
|
};
|
|
|
|
networking.firewall = {
|
|
allowedTCPPorts = [
|
|
80
|
|
443
|
|
8080
|
|
# 9090
|
|
50443
|
|
];
|
|
allowedUDPPorts = [
|
|
3478
|
|
];
|
|
};
|
|
}
|