summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--modules/nixos/headscale.nix17
1 files changed, 12 insertions, 5 deletions
diff --git a/modules/nixos/headscale.nix b/modules/nixos/headscale.nix
index 5018307..3425a77 100644
--- a/modules/nixos/headscale.nix
+++ b/modules/nixos/headscale.nix
@@ -1,8 +1,7 @@
{config, ...}:
let
domain = "myrmexia.xyz";
- subDomain = "headscale.${domain}";
- email = "devin.finlinson@pm.me";
+ subDomain = "tailscale.${domain}";
in {
services = {
headscale = {
@@ -12,7 +11,16 @@ in {
settings = {
logtail.enabled = false;
serverUrl = "https://${subDomain}";
- dns.base_domain = "${domain}";
+ dns = {
+ base_domain = "${domain}";
+ extra_records = [
+ {
+ name = "git.myrmexia.xyz";
+ type = "A";
+ value = "100.64.0.3";
+ }
+ ];
+ };
ip_prefixes = [
"100.64.0.0/10"
"fd7a:115c:a1e0::/48"
@@ -22,9 +30,8 @@ in {
caddy = {
enable = true;
- email = "${email}";
virtualHosts.${subDomain}.extraConfig = ''
- reverse_proxy http://localhost:${toString config.services.headscale.port}
+ reverse_proxy localhost:${toString config.services.headscale.port}
'';
};
};