headscale: DNS tweaks

This commit is contained in:
Erwin Boskma 2023-05-05 19:47:12 +02:00
parent e374d0d3e6
commit cb20e79b33
Signed by: erwin
SSH key fingerprint: SHA256:3F6Cm6I3erRqlBwEghZWAQl6eS5WrGTX1Vs/Evec1lQ
2 changed files with 17 additions and 2 deletions

View file

@ -59,7 +59,7 @@
### Hetzner stuff
boot = {
cleanTmpDir = true;
tmp.cleanOnBoot = true;
loader.grub.device = "/dev/sda";
initrd = {
availableKernelModules = [ "ata_piix" "uhci_hcd" "xen_blkfront" "vmw_pvscsi" ];

View file

@ -26,9 +26,22 @@ in
override_local_dns = true;
base_domain = cfg.baseDomain;
nameservers = [
"10.0.0.254"
"10.0.0.254" # Home
"192.168.4.1" # Horus
"1.1.1.1"
];
extra_records = [
{
name = "frigate.datarift.nl";
type = "A";
value = "10.0.0.251";
}
{
name = "pve.datarift.nl";
type = "A";
value = "10.0.0.252";
}
];
};
server_url = cfg.serverUrl;
@ -60,6 +73,8 @@ in
environment.systemPackages = [ pkgs.headscale ];
systemd.services.headscale.environment.HEADSCALE_EXPERIMENTAL_FEATURE_SSH = "1";
users.users.${config.eboskma.var.mainUser}.extraGroups = [ "headscale" ];
};
}