fix(headscale)!: Rename 'url' to 'domain'

This better reflects the value which goes in the option by removing
confusion about if the protocol should be included

Change-Id: Ib550eb97b96999a733c07915c8738a337546ec52
Reviewed-on: https://git.clicks.codes/c/Infra/NixFiles/+/790
Reviewed-by: Samuel Shuert <coded@clicks.codes>
Tested-by: Skyler Grey <minion@clicks.codes>
diff --git a/modules/nixos/clicks/services/headscale/README.md b/modules/nixos/clicks/services/headscale/README.md
index 93bbed1..5ac60ff 100644
--- a/modules/nixos/clicks/services/headscale/README.md
+++ b/modules/nixos/clicks/services/headscale/README.md
@@ -12,13 +12,13 @@
 ```nix
 clicks.services.headscale = {
   enable = true;
-  url = "clicks.domains";
+  domain = "clicks.domains";
 };
 ```
 
-The `url` is both the address you'll use to access your headscale server, as well as the base address that devices are
-suffixed with (e.g. a device called `albatross` owned by `minion` would become `albatross.minion.<url>`). It's also
-added as a search domain, so you could access "albatross" with "albatross.minion".
+The `domain` is both the address you'll use to access your headscale server, as well as the base address that devices
+are suffixed with (e.g. a device called `albatross` owned by `minion` would become `albatross.minion.<domain>`). It's
+also added as a search domain, so you could access "albatross" with "albatross.minion".
 
 ---
 
diff --git a/modules/nixos/clicks/services/headscale/default.nix b/modules/nixos/clicks/services/headscale/default.nix
index 1e1b0d8..b540acb 100644
--- a/modules/nixos/clicks/services/headscale/default.nix
+++ b/modules/nixos/clicks/services/headscale/default.nix
@@ -14,9 +14,9 @@
 {
   options.clicks.services.headscale = {
     enable = lib.mkEnableOption "The headscale control server for tailscale";
-    url = lib.mkOption {
+    domain = lib.mkOption {
       type = lib.types.str;
-      description = "The url users should connect to to register a new device";
+      description = "The domain of the url users should connect to to register a new device";
     };
     addr = lib.mkOption {
       type = lib.types.str;
@@ -89,7 +89,7 @@
       settings.db_name = "headscale";
       settings.db_host = lib.clicks.constants.hosts.standard;
 
-      settings.server_url = "https://${cfg.url}";
+      settings.server_url = "https://${cfg.domain}";
 
       settings.ip_prefixes = "100.64.0.0/10";
 
@@ -103,9 +103,9 @@
           "1.1.1.1"
           "1.0.0.1"
         ];
-        domains = [ cfg.url ];
+        domains = [ cfg.domain ];
         override_local_dns = true;
-        base_domain = cfg.url;
+        base_domain = cfg.domain;
       };
 
       settings.oidc = lib.mkIf cfg.oidc.enable {
diff --git a/systems/x86_64-linux/teal/default.nix b/systems/x86_64-linux/teal/default.nix
index 40a0066..6d5ffcc 100644
--- a/systems/x86_64-linux/teal/default.nix
+++ b/systems/x86_64-linux/teal/default.nix
@@ -40,7 +40,7 @@
       ssh.enable = true;
       headscale = {
         enable = true;
-        url = "clicks.domains";
+        domain = "clicks.domains";
         oidc = {
           enable = true;
           issuer = "https://login.clicks.codes/realms/master";