1
0
Fork 0
forked from emily/nixfiles
nixfiles-emily/config/networking.nix
2023-11-28 08:19:49 +01:00

33 lines
677 B
Nix

{ config, ... }: {
networking = {
hostName = "web02";
domain = "kyouma.net";
useHostResolvConf = false;
dhcpcd.enable = false;
firewall.allowedTCPPorts = [ 80 443 ];
firewall.allowedUDPPorts = [ 80 443 ];
};
systemd.network.enable = true;
services.resolved = {
enable = true;
dnssec = "true";
extraConfig = ''
DNS = [2a0f:be01::1]
'';
};
systemd.network.networks."98-eth0" = {
matchConfig.Name = "eth0";
networkConfig = {
DHCP = "ipv4";
IPv6AcceptRA = false;
};
address = [
"2a0f:be01:0:100::1312/128"
];
routes = [
{ routeConfig.Gateway = "fe80::1"; }
];
};
}