tailscale, headscale: Use internal DNS
This commit is contained in:
parent
3a9a3c40b0
commit
909f820af5
6 changed files with 6 additions and 16 deletions
|
@ -18,4 +18,6 @@
|
||||||
${lib.getExe config.services.tailscale.package} up --reset ${lib.escapeShellArgs config.services.tailscale.extraUpFlags}
|
${lib.getExe config.services.tailscale.package} up --reset ${lib.escapeShellArgs config.services.tailscale.extraUpFlags}
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
|
networking.domain = "birdsong.network";
|
||||||
}
|
}
|
||||||
|
|
|
@ -12,7 +12,6 @@ in
|
||||||
nixpkgs.hostPlatform = "aarch64-linux";
|
nixpkgs.hostPlatform = "aarch64-linux";
|
||||||
networking.hostName = "kalessin";
|
networking.hostName = "kalessin";
|
||||||
networking.hostId = "534b538e";
|
networking.hostId = "534b538e";
|
||||||
networking.domain = "birdsong.network";
|
|
||||||
|
|
||||||
fountain.users.qenya.enable = true;
|
fountain.users.qenya.enable = true;
|
||||||
fountain.users.randomcat.enable = true;
|
fountain.users.randomcat.enable = true;
|
||||||
|
|
|
@ -9,7 +9,6 @@
|
||||||
nixpkgs.hostPlatform = "x86_64-linux";
|
nixpkgs.hostPlatform = "x86_64-linux";
|
||||||
networking.hostName = "orm";
|
networking.hostName = "orm";
|
||||||
networking.hostId = "00000000";
|
networking.hostId = "00000000";
|
||||||
networking.domain = "birdsong.network";
|
|
||||||
|
|
||||||
fountain.users.qenya.enable = true;
|
fountain.users.qenya.enable = true;
|
||||||
fountain.admins = [ "qenya" ];
|
fountain.admins = [ "qenya" ];
|
||||||
|
|
|
@ -9,7 +9,6 @@
|
||||||
nixpkgs.hostPlatform = "aarch64-linux";
|
nixpkgs.hostPlatform = "aarch64-linux";
|
||||||
networking.hostName = "tehanu";
|
networking.hostName = "tehanu";
|
||||||
networking.hostId = "8e1185ab";
|
networking.hostId = "8e1185ab";
|
||||||
networking.domain = "birdsong.network";
|
|
||||||
|
|
||||||
fountain.users.qenya.enable = true;
|
fountain.users.qenya.enable = true;
|
||||||
fountain.admins = [ "qenya" ];
|
fountain.admins = [ "qenya" ];
|
||||||
|
|
|
@ -12,7 +12,6 @@
|
||||||
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
|
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
|
||||||
networking.hostName = "yevaud";
|
networking.hostName = "yevaud";
|
||||||
networking.hostId = "09673d65";
|
networking.hostId = "09673d65";
|
||||||
networking.domain = "birdsong.network";
|
|
||||||
|
|
||||||
fountain.users.qenya.enable = true;
|
fountain.users.qenya.enable = true;
|
||||||
fountain.admins = [ "qenya" ];
|
fountain.admins = [ "qenya" ];
|
||||||
|
@ -47,16 +46,5 @@
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
services.nginx = {
|
|
||||||
enable = true;
|
|
||||||
virtualHosts = {
|
|
||||||
"birdsong.network" = {
|
|
||||||
forceSSL = true;
|
|
||||||
enableACME = true;
|
|
||||||
locations."/".return = "301 https://git.unspecified.systems/qenya/birdsong/";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
system.stateVersion = "23.11";
|
system.stateVersion = "23.11";
|
||||||
}
|
}
|
||||||
|
|
|
@ -39,7 +39,10 @@ in
|
||||||
settings = {
|
settings = {
|
||||||
server_url = "https://${cfg.domain}:443";
|
server_url = "https://${cfg.domain}:443";
|
||||||
prefixes.allocation = "random";
|
prefixes.allocation = "random";
|
||||||
dns.magic_dns = false;
|
dns = {
|
||||||
|
magic_dns = true;
|
||||||
|
base_domain = "birdsong.network";
|
||||||
|
};
|
||||||
|
|
||||||
# disable built-in ACME client
|
# disable built-in ACME client
|
||||||
tls_cert_path = null;
|
tls_cert_path = null;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue