headscale: DNS tweaks
This commit is contained in:
parent
e374d0d3e6
commit
cb20e79b33
2 changed files with 17 additions and 2 deletions
|
@ -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" ];
|
||||
|
|
|
@ -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" ];
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue