From 2400d2aef9c024d6b14559621a6d969de7fa6575 Mon Sep 17 00:00:00 2001 From: Adithya Nair Date: Sun, 8 Dec 2024 15:53:58 +0530 Subject: [PATCH] wynne: DNS shenanigans --- hosts/wynne/network/default.nix | 11 ++--------- hosts/wynne/network/wireguard.nix | 1 + 2 files changed, 3 insertions(+), 9 deletions(-) diff --git a/hosts/wynne/network/default.nix b/hosts/wynne/network/default.nix index d56b657..0885370 100644 --- a/hosts/wynne/network/default.nix +++ b/hosts/wynne/network/default.nix @@ -41,6 +41,7 @@ networkConfig = { DHCP = "yes"; IPv4Forwarding = "yes"; + Domains = [ "~." ]; }; dhcpV4Config = { UseDomains = true; @@ -57,17 +58,9 @@ }; }; - services.resolved = { - enable = true; - domains = [ "~." ]; - fallbackDns = [ ]; - }; - + services.resolved.enable = true; networking = { useDHCP = lib.mkDefault false; - nameservers = [ - "10.10.10.1" - ]; useNetworkd = true; }; } diff --git a/hosts/wynne/network/wireguard.nix b/hosts/wynne/network/wireguard.nix index c446031..4d57ec2 100644 --- a/hosts/wynne/network/wireguard.nix +++ b/hosts/wynne/network/wireguard.nix @@ -37,6 +37,7 @@ let wireguard-peers = import ../../shared/wireguard-peers.nix { }; in { }; networkConfig = { DNS = "10.10.10.1"; + Domains = [ "labs.adtya.xyz" ]; Address = [ "${config.nodeconfig.facts.wireguard-ip}/24" ];