rico2: DNS shenanigans

This commit is contained in:
Adithya 2024-12-08 15:56:30 +05:30
parent 2400d2aef9
commit d5be572083
Signed by: adtya
GPG key ID: B8857BFBA2C47B9C
2 changed files with 3 additions and 9 deletions

View file

@ -41,6 +41,7 @@
networkConfig = { networkConfig = {
DHCP = "yes"; DHCP = "yes";
IPv4Forwarding = "yes"; IPv4Forwarding = "yes";
Domains = [ "~." ];
}; };
dhcpV4Config = { dhcpV4Config = {
UseDomains = true; UseDomains = true;
@ -57,17 +58,9 @@
}; };
}; };
services.resolved = { services.resolved.enable = true;
enable = true;
domains = [ "~." ];
fallbackDns = [ ];
};
networking = { networking = {
useDHCP = lib.mkDefault false; useDHCP = lib.mkDefault false;
nameservers = [
"10.10.10.1"
];
useNetworkd = true; useNetworkd = true;
}; };
} }

View file

@ -37,6 +37,7 @@ let wireguard-peers = import ../../shared/wireguard-peers.nix { }; in {
}; };
networkConfig = { networkConfig = {
DNS = "10.10.10.1"; DNS = "10.10.10.1";
Domains = [ "labs.adtya.xyz" ];
Address = [ Address = [
"${config.nodeconfig.facts.wireguard-ip}/24" "${config.nodeconfig.facts.wireguard-ip}/24"
]; ];