1
0
Fork 0
forked from emily/nixfiles
nixfiles-emily/config/hosts/ns-nbg/configuration.nix

34 lines
716 B
Nix
Raw Normal View History

2024-01-18 16:03:31 +01:00
{ config, lib, ... }: {
imports = [
../../common
2024-02-05 22:22:40 +01:00
../../profiles/headless.nix
2024-05-06 20:42:50 +02:00
../../profiles/lxc.nix
2024-01-18 16:03:31 +01:00
];
2024-05-06 20:42:50 +02:00
kyouma.machine-type.physical = false;
2024-01-18 16:03:31 +01:00
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 = [
2024-05-06 20:42:50 +02:00
{ routeConfig.Gateway = "fe80::1"; }
{ routeConfig.Gateway = "185.244.192.1"; }
2024-01-18 16:03:31 +01:00
];
};
services.powerdns = {
enable = true;
secretFile = "/run/keys/powerdns.env";
extraConfig = ''
'';
};
}