Compare commits

..

1 commit

Author SHA1 Message Date
172c42963e
DNS shenanigans 2024-12-08 14:57:43 +05:30
3 changed files with 10 additions and 4 deletions

View file

@ -12,11 +12,11 @@
enable = true; enable = true;
matchConfig = { matchConfig = {
Type = "ether"; Type = "ether";
Name = "e*";
}; };
networkConfig = { networkConfig = {
DHCP = "yes"; DHCP = "yes";
IPv4Forwarding = "yes"; IPv4Forwarding = "yes";
Domains = [ "~." ];
}; };
dhcpV4Config = { dhcpV4Config = {
UseDomains = true; UseDomains = true;
@ -29,8 +29,16 @@
}; };
}; };
services.resolved.enable = true; services.resolved = {
enable = true;
domains = [ "~." ];
fallbackDns = [ ];
};
networking = { networking = {
nameservers = [
"10.10.10.1"
];
useDHCP = lib.mkDefault false; useDHCP = lib.mkDefault false;
useNetworkd = true; useNetworkd = true;
}; };

View file

@ -39,7 +39,6 @@ let wireguard-peers = import ../../shared/wireguard-peers.nix { noEndpoints = tr
}; };
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"
]; ];

View file

@ -90,7 +90,6 @@
services.resolved.enable = true; services.resolved.enable = true;
networking = { networking = {
useDHCP = lib.mkDefault false; useDHCP = lib.mkDefault false;
useNetworkd = true;
firewall = { firewall = {
allowedTCPPorts = [ allowedTCPPorts = [