2023-11-27 21:44:04 -08:00
|
|
|
{ config, ... }:
|
|
|
|
|
|
|
|
|
|
{
|
2023-12-06 21:46:16 -08:00
|
|
|
services = {
|
|
|
|
|
headscale = let const = config.constants; in {
|
2023-11-27 21:44:04 -08:00
|
|
|
enable = true;
|
|
|
|
|
address = const.localhost;
|
2023-12-06 21:46:16 -08:00
|
|
|
port = const.port.headscale;
|
2023-11-27 21:44:04 -08:00
|
|
|
settings.server_url = "https://headscale.${const.domain}";
|
|
|
|
|
};
|
|
|
|
|
tailscale = {
|
|
|
|
|
enable = true;
|
|
|
|
|
port = 27919;
|
|
|
|
|
useRoutingFeatures = "both";
|
|
|
|
|
};
|
|
|
|
|
};
|
|
|
|
|
}
|