nixfiles/config/hosts/ns-nbg/configuration.nix

34 lines
727 B
Nix
Raw Normal View History

2024-01-18 16:03:31 +01:00
{ config, lib, ... }: {
imports = [
../../common
../../common-headless.nix
];
kyouma.machine-type.physical = true;
kyouma.machine-type.headless = true;
systemd.network.networks."98-eth-static" = {
matchConfig.Type = "ether";
matchConfig.Name = "e*";
linkConfig.RequiredForOnline = "routable";
networkConfig = {
DHCP = "no";
IPv6AcceptRA = false;
};
address = [
"2a03:4000:27:74::b00b/64"
"185.244.193.190/22"
];
routes = [
{ routerConfig.Gateway = "fe80::1"; }
{ routerConfig.Gateway = "185.244.192.1"; }
];
};
services.powerdns = {
enable = true;
secretFile = "/run/keys/powerdns.env";
extraConfig = ''
'';
};
}