mirror of
https://github.com/Nickiel12/nicks-nix-config.git
synced 2024-11-22 12:49:32 -08:00
added entries to tailscale magicDNS
This commit is contained in:
parent
995d33dd5e
commit
afe2e74990
2 changed files with 22 additions and 1 deletions
17
hosts/Alaska/modules/dns.nix
Normal file
17
hosts/Alaska/modules/dns.nix
Normal 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";
|
||||
}
|
||||
]
|
|
@ -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 ];
|
||||
|
|
Loading…
Reference in a new issue