nixfiles/config/common/networking.nix
2023-12-06 10:21:07 +01:00

28 lines
546 B
Nix

{ 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]
'';
};
systemd.network.networks."98-eth-default" = {
matchConfig.Tyoe = "ether";
matchConfig.Name = "e*";
networkConfig = {
DHCP = "ipv4";
IPv6AcceptRA = false;
};
routes = [
{ routeConfig.Gateway = "fe80::1"; }
];
};
}