nixfiles/config/hosts/ns-nbg/configuration.nix
2024-02-05 22:22:40 +01:00

32 lines
690 B
Nix

{ config, lib, ... }: {
imports = [
../../common
../../profiles/headless.nix
];
kyouma.machine-type.physical = 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 = ''
'';
};
}