forked from emily/nixfiles
33 lines
677 B
Nix
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"; }
|
|
];
|
|
};
|
|
}
|