Make MagicDNS fully qualified hostnames work
This commit is contained in:
parent
25cb4f70ec
commit
d4bb4e7ad9
2 changed files with 6 additions and 2 deletions
|
@ -34,7 +34,6 @@ in
|
||||||
|
|
||||||
networking = {
|
networking = {
|
||||||
networkmanager.enable = true;
|
networkmanager.enable = true;
|
||||||
resolvconf.enable = false; # prevent default nameservers
|
|
||||||
nameservers = [ "1.1.1.1" "1.0.0.1" ];
|
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
|
# To prevent `Unit dconf.service not found.` after theming GTK in HM
|
||||||
programs.dconf.enable = true;
|
programs.dconf.enable = true;
|
||||||
|
|
||||||
|
networking.search = [ "elnu.com" ];
|
||||||
|
|
||||||
networking.extraHosts = ''
|
networking.extraHosts = ''
|
||||||
192.168.0.26 elnuhub
|
192.168.0.26 elnuhub
|
||||||
192.168.0.26 elnuhub.local
|
192.168.0.26 elnuhub.local
|
||||||
|
|
|
@ -10,7 +10,10 @@ in {
|
||||||
port = 8080;
|
port = 8080;
|
||||||
settings = {
|
settings = {
|
||||||
server_url = "https://${domain}";
|
server_url = "https://${domain}";
|
||||||
dns_config.base_domain = baseDomain;
|
dns_config = {
|
||||||
|
base_domain = baseDomain;
|
||||||
|
domains = [ baseDomain ];
|
||||||
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
environment.systemPackages = [ config.services.headscale.package ];
|
environment.systemPackages = [ config.services.headscale.package ];
|
||||||
|
|
Loading…
Add table
Reference in a new issue