forked from emily/nixfiles
33 lines
716 B
Nix
33 lines
716 B
Nix
{ config, lib, ... }: {
|
|
imports = [
|
|
../../common
|
|
../../profiles/headless.nix
|
|
../../profiles/lxc.nix
|
|
];
|
|
kyouma.machine-type.physical = false;
|
|
|
|
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 = [
|
|
{ routeConfig.Gateway = "fe80::1"; }
|
|
{ routeConfig.Gateway = "185.244.192.1"; }
|
|
];
|
|
};
|
|
services.powerdns = {
|
|
enable = true;
|
|
secretFile = "/run/keys/powerdns.env";
|
|
extraConfig = ''
|
|
'';
|
|
};
|
|
}
|