2024-04-05 23:45:55 +02:00
|
|
|
{...}: {
|
|
|
|
systemd.network = {
|
|
|
|
# Main interface
|
2024-06-27 20:37:34 +02:00
|
|
|
# https://wiki.nixos.org/wiki/Install_NixOS_on_Hetzner_Cloud
|
2024-04-05 23:45:55 +02:00
|
|
|
networks."10-lan" = {
|
2024-06-11 23:32:35 +02:00
|
|
|
matchConfig.Name = "enp1s0";
|
2024-04-05 23:45:55 +02:00
|
|
|
address = [
|
2024-10-07 23:45:22 +02:00
|
|
|
# NOTE: Default outgoing address is the LAST address in the list
|
2024-04-08 23:09:35 +02:00
|
|
|
"159.69.4.2/32"
|
2024-10-07 23:45:22 +02:00
|
|
|
"2a01:4f8:1c0c:70d1::2/64"
|
2024-04-16 02:41:23 +02:00
|
|
|
"2a01:4f8:1c0c:70d1::1/64"
|
2024-04-05 23:45:55 +02:00
|
|
|
];
|
|
|
|
routes = [
|
|
|
|
{routeConfig = {Destination = "172.31.1.1";};}
|
|
|
|
{
|
|
|
|
routeConfig = {
|
|
|
|
Gateway = "172.31.1.1";
|
|
|
|
GatewayOnLink = true;
|
|
|
|
};
|
|
|
|
}
|
|
|
|
{routeConfig = {Gateway = "fe80::1";};}
|
|
|
|
];
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|