From d5be5720831576f625f5504521cc270009540264 Mon Sep 17 00:00:00 2001 From: Adithya Nair Date: Sun, 8 Dec 2024 15:56:30 +0530 Subject: [PATCH] rico2: DNS shenanigans --- hosts/rico2/network/default.nix | 11 ++--------- hosts/rico2/network/wireguard.nix | 1 + 2 files changed, 3 insertions(+), 9 deletions(-) diff --git a/hosts/rico2/network/default.nix b/hosts/rico2/network/default.nix index d56b657..0885370 100644 --- a/hosts/rico2/network/default.nix +++ b/hosts/rico2/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/rico2/network/wireguard.nix b/hosts/rico2/network/wireguard.nix index a0516f0..2fab112 100644 --- a/hosts/rico2/network/wireguard.nix +++ b/hosts/rico2/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" ];