rico1: DNS shenanigans
This commit is contained in:
parent
d5be572083
commit
59af07ec66
2 changed files with 3 additions and 9 deletions
|
@ -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;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -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"
|
||||||
];
|
];
|
||||||
|
|
Loading…
Reference in a new issue