2023-05-19 11:42:43 +02:00
|
|
|
{ ... }:
|
2023-01-23 23:35:44 +01:00
|
|
|
{
|
|
|
|
networking = {
|
2023-04-06 22:31:45 +02:00
|
|
|
hostName = "nuc";
|
2023-09-19 13:47:08 +02:00
|
|
|
domain = "rfive.de";
|
2023-01-23 23:35:44 +01:00
|
|
|
useNetworkd = true;
|
2023-04-12 15:06:17 +02:00
|
|
|
enableIPv6 = true;
|
2023-01-23 23:35:44 +01:00
|
|
|
};
|
2023-04-27 18:11:10 +02:00
|
|
|
services.resolved = {
|
|
|
|
enable = true;
|
2023-09-29 10:32:24 +02:00
|
|
|
dnssec = "true";
|
|
|
|
fallbackDns = [
|
|
|
|
"9.9.9.9"
|
|
|
|
"149.112.112.112"
|
|
|
|
"2620:fe::fe"
|
|
|
|
"2620:fe::9"
|
|
|
|
];
|
2023-04-27 18:11:10 +02:00
|
|
|
# make room for the adguard dns
|
|
|
|
extraConfig = ''
|
|
|
|
[Resolve]
|
|
|
|
DNS=127.0.0.1
|
|
|
|
DNSStubListener=no
|
|
|
|
'';
|
|
|
|
};
|
2023-01-23 23:35:44 +01:00
|
|
|
systemd.network = {
|
|
|
|
enable = true;
|
|
|
|
networks."10-loopback" = {
|
|
|
|
matchConfig.Name = "lo";
|
|
|
|
linkConfig.RequiredForOnline = false;
|
|
|
|
};
|
|
|
|
networks."10-wired" = {
|
|
|
|
matchConfig.Name = "eno1";
|
|
|
|
networkConfig = {
|
|
|
|
DHCP = "yes";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|