From d4bb4e7ad9b08f8086520857323a46cb732e1848 Mon Sep 17 00:00:00 2001 From: ElnuDev Date: Mon, 7 Aug 2023 15:02:42 -0700 Subject: [PATCH] Make MagicDNS fully qualified hostnames work --- hosts/desktop.nix | 3 ++- hosts/elnudrop/modules/headscale.nix | 5 ++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/hosts/desktop.nix b/hosts/desktop.nix index de98c63..17016a5 100644 --- a/hosts/desktop.nix +++ b/hosts/desktop.nix @@ -34,7 +34,6 @@ in networking = { networkmanager.enable = true; - resolvconf.enable = false; # prevent default nameservers nameservers = [ "1.1.1.1" "1.0.0.1" ]; }; @@ -57,6 +56,8 @@ in # To prevent `Unit dconf.service not found.` after theming GTK in HM programs.dconf.enable = true; + networking.search = [ "elnu.com" ]; + networking.extraHosts = '' 192.168.0.26 elnuhub 192.168.0.26 elnuhub.local diff --git a/hosts/elnudrop/modules/headscale.nix b/hosts/elnudrop/modules/headscale.nix index 909f233..6463a0f 100644 --- a/hosts/elnudrop/modules/headscale.nix +++ b/hosts/elnudrop/modules/headscale.nix @@ -10,7 +10,10 @@ in { port = 8080; settings = { server_url = "https://${domain}"; - dns_config.base_domain = baseDomain; + dns_config = { + base_domain = baseDomain; + domains = [ baseDomain ]; + }; }; }; environment.systemPackages = [ config.services.headscale.package ];