Skip to content

Commit ece71c6

Browse files
authored
nixos/headscale: remove much-loosened-up server_url check (#374374)
2 parents 31680c6 + de0a499 commit ece71c6

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

nixos/modules/services/networking/headscale.nix

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -559,16 +559,6 @@ in
559559

560560
config = lib.mkIf cfg.enable {
561561
assertions = [
562-
{
563-
# This is stricter than it needs to be but is exactly what upstream does:
564-
# https://github.com/kradalby/headscale/blob/adc084f20f843d7963c999764fa83939668d2d2c/hscontrol/types/config.go#L799
565-
assertion =
566-
with cfg.settings;
567-
dns.use_username_in_magic_dns or false
568-
|| dns.base_domain == ""
569-
|| !lib.hasInfix dns.base_domain server_url;
570-
message = "server_url cannot contain the base_domain, this will cause the headscale server and embedded DERP to become unreachable from the Tailscale node.";
571-
}
572562
{
573563
assertion = with cfg.settings; dns.magic_dns -> dns.base_domain != "";
574564
message = "dns.base_domain must be set when using MagicDNS";

0 commit comments

Comments
 (0)