added entries to tailscale magicDNS

This commit is contained in:
Nickiel12 2023-10-15 16:35:06 -07:00
parent 995d33dd5e
commit afe2e74990
2 changed files with 22 additions and 1 deletions

View file

@ -0,0 +1,17 @@
[
{
name = "vaultwarden.nickiel.net";
type = "A";
value = "100.64.0.1";
}
{
name = "git.nickiel.net";
type = "A";
value = "100.64.0.1";
}
{
name = "files.nickiel.net";
type = "A";
value = "100.64.0.1";
}
]

View file

@ -1,6 +1,7 @@
{ config, ... }:
let
tailscale_dns_entries = import ./dns.nix;
baseDomain = "nickiel.net";
domain = "headscale.${baseDomain}";
in {
@ -13,7 +14,10 @@ in {
port = 8082;
settings = {
server_url = "https://${domain}";
dns_config.base_domain = baseDomain;
dns_config = {
base_domain = baseDomain;
extra_records = tailscale_dns_entries;
};
};
};
environment.systemPackages = [ config.services.headscale.package ];