1
0
Fork 0
forked from emily/nixfiles
nixfiles-emily/config/common/networking.nix

29 lines
546 B
Nix
Raw Normal View History

2023-11-28 08:19:49 +01:00
{ config, ... }: {
networking = {
domain = "kyouma.net";
useHostResolvConf = false;
dhcpcd.enable = false;
};
systemd.network.enable = true;
services.resolved = {
enable = true;
dnssec = "true";
extraConfig = ''
DNS = [2a0f:be01::1]
'';
};
2023-12-06 10:21:07 +01:00
systemd.network.networks."98-eth-default" = {
matchConfig.Tyoe = "ether";
matchConfig.Name = "e*";
2023-11-28 08:19:49 +01:00
networkConfig = {
DHCP = "ipv4";
IPv6AcceptRA = false;
};
routes = [
{ routeConfig.Gateway = "fe80::1"; }
];
};
}