nixos-config/hosts/nuc/modules/networks/default.nix

41 lines
784 B
Nix
Raw Normal View History

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-10-26 12:12:45 +02:00
nftables.enable = true;
2023-01-23 23:35:44 +01:00
};
2023-10-09 23:37:08 +02:00
services.lldpd.enable = true;
2023-04-27 18:11:10 +02:00
services.resolved = {
enable = true;
2023-10-17 10:39:14 +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
2023-10-17 10:39:14 +02:00
# extraConfig = ''
# [Resolve]
# DNS=127.0.0.1
# DNSStubListener=no
# '';
2023-04-27 18:11:10 +02:00
};
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";
};
};
};
}