diff --git a/modules/services/headscale/default.nix b/modules/services/headscale/default.nix index 8104c04..4600735 100644 --- a/modules/services/headscale/default.nix +++ b/modules/services/headscale/default.nix @@ -24,61 +24,9 @@ in description = "Port for the Headscale service."; }; settings = mkOption { - type = types.submodule { - freeformType = types.attrsOf types.anything; - options = { - server_url = mkOption { - type = types.str; - default = "https://${cfg.domain}"; - }; - dns = mkOption { - type = types.submodule { - options = { - magic_dns = mkOption { - type = types.bool; - default = false; - }; - override_local_dns = mkOption { - type = types.bool; - default = true; - }; - global = mkOption { - type = types.listOf types.str; - default = [ ]; - }; - nameservers = mkOption { - type = types.submodule { - options.global = mkOption { - type = types.listOf types.str; - default = [ ]; - }; - }; - default = { }; - }; - }; - }; - default = { }; - }; - log.level = mkOption { - type = types.str; - default = "info"; - }; - logtail.enabled = mkOption { - type = types.bool; - default = false; - }; - prefixes.v4 = mkOption { - type = types.str; - default = null; - }; - noise.private_key_path = mkOption { - type = types.path; - default = "/var/lib/headscale/noise_private.key"; - }; - }; - }; + type = types.attrsOf types.anything; default = { }; - description = "Configuration settings for Headscale."; + description = "Arbitrary configuration settings for Headscale."; }; };