2024-06-29 17:52:32 +05:30
|
|
|
{ lib, ... }: {
|
2024-06-30 17:54:04 +05:30
|
|
|
imports = [ ./wireguard.nix ];
|
2024-06-29 17:52:32 +05:30
|
|
|
networking = {
|
|
|
|
nameservers = [
|
|
|
|
"2620:fe::fe#dns.quad9.net"
|
|
|
|
"9.9.9.9#dns.quad9.net"
|
|
|
|
"2620:fe::9#dns.quad9.net"
|
|
|
|
"149.112.112.112#dns.quad9.net"
|
|
|
|
];
|
2024-07-04 23:02:06 +05:30
|
|
|
useDHCP = lib.mkDefault false;
|
|
|
|
useNetworkd = true;
|
|
|
|
};
|
2024-06-29 17:52:32 +05:30
|
|
|
|
2024-07-04 23:02:06 +05:30
|
|
|
systemd.network = {
|
|
|
|
enable = true;
|
|
|
|
networks = {
|
|
|
|
"41-ether" = {
|
|
|
|
enable = true;
|
|
|
|
matchConfig = {
|
|
|
|
Type = "ether";
|
|
|
|
};
|
|
|
|
networkConfig = {
|
|
|
|
DHCP = "yes";
|
|
|
|
};
|
|
|
|
dhcpV4Config = {
|
|
|
|
UseDomains = true;
|
|
|
|
};
|
|
|
|
ipv6AcceptRAConfig = {
|
|
|
|
UseDomains = true;
|
|
|
|
};
|
|
|
|
linkConfig = {
|
|
|
|
RequiredForOnline = "yes";
|
|
|
|
};
|
|
|
|
};
|
2024-06-29 17:52:32 +05:30
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
services.resolved = {
|
|
|
|
enable = true;
|
|
|
|
dnssec = "true";
|
|
|
|
dnsovertls = "true";
|
|
|
|
domains = [ "~." ];
|
|
|
|
fallbackDns = [ ];
|
|
|
|
};
|
|
|
|
}
|