2024-01-18 16:03:31 +01:00
|
|
|
{ config, lib, ... }: {
|
|
|
|
imports = [
|
|
|
|
../../common
|
2024-02-05 22:22:40 +01:00
|
|
|
../../profiles/headless.nix
|
2024-01-18 16:03:31 +01:00
|
|
|
];
|
|
|
|
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 = ''
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
}
|