forked from pub-solar/infra
35 lines
753 B
Nix
35 lines
753 B
Nix
{
|
|
config,
|
|
pkgs,
|
|
flake,
|
|
... }:
|
|
{
|
|
|
|
networking.hostName = "nachtigall";
|
|
networking.domain = "pub.solar";
|
|
networking.hostId = "00000001";
|
|
|
|
# Network (Hetzner uses static IP assignments, and we don't use DHCP here)
|
|
networking.useDHCP = false;
|
|
networking.interfaces."enp35s0".ipv4.addresses = [
|
|
{
|
|
address = "138.201.80.102";
|
|
prefixLength = 26;
|
|
}
|
|
];
|
|
networking.interfaces."enp35s0".ipv6.addresses = [
|
|
{
|
|
address = "2a01:4f8:172:1c25::1";
|
|
prefixLength = 64;
|
|
}
|
|
];
|
|
networking.defaultGateway = "138.201.80.65";
|
|
networking.defaultGateway6 = { address = "fe80::1"; interface = "enp35s0"; };
|
|
|
|
networking.nat = {
|
|
enable = true;
|
|
enableIPv6 = true;
|
|
externalInterface = "enp35s0";
|
|
};
|
|
}
|