infra/hosts/tankstelle/networking.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

43 lines
757 B
Nix
Raw Normal View History

2024-05-29 12:08:59 +00:00
{
config,
pkgs,
flake,
...
}:
{
networking = {
hostName = "tankstelle";
domain = "pub.solar";
enableIPv6 = true;
defaultGateway = {
address = "80.244.242.1";
interface = "enp1s0";
};
defaultGateway6 = {
address = "2001:4d88:1ffa:26::1";
interface = "enp1s0";
};
2024-05-30 13:21:44 +00:00
nameservers = [
"95.129.51.51"
"80.244.244.244"
];
2024-05-29 12:08:59 +00:00
interfaces."enp1s0" = {
ipv4.addresses = [
{
address = "80.244.242.5";
prefixLength = 29;
}
];
ipv6.addresses = [
{
address = "2001:4d88:1ffa:26::5";
prefixLength = 64;
}
];
};
};
# TODO: ssh via wireguard only
services.openssh.openFirewall = true;
}