From 59af07ec66afafbd23fc6ff8d4962a4882695958 Mon Sep 17 00:00:00 2001 From: Adithya Nair Date: Sun, 8 Dec 2024 16:05:22 +0530 Subject: [PATCH] rico1: DNS shenanigans --- hosts/rico1/network/default.nix | 11 ++--------- hosts/rico1/network/wireguard.nix | 1 + 2 files changed, 3 insertions(+), 9 deletions(-) diff --git a/hosts/rico1/network/default.nix b/hosts/rico1/network/default.nix index d56b657..0885370 100644 --- a/hosts/rico1/network/default.nix +++ b/hosts/rico1/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/rico1/network/wireguard.nix b/hosts/rico1/network/wireguard.nix index 8a382ab..839c11d 100644 --- a/hosts/rico1/network/wireguard.nix +++ b/hosts/rico1/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" ];