2023-02-24 16:16:15 +02:00
|
|
|
{ config, depot, ... }:
|
2021-10-16 21:18:53 +03:00
|
|
|
let
|
2023-02-24 16:16:15 +02:00
|
|
|
inherit (depot.reflection) interfaces;
|
2021-10-16 21:18:53 +03:00
|
|
|
in
|
|
|
|
{
|
|
|
|
imports = [
|
|
|
|
./port-forward.nix
|
|
|
|
./peering.nix
|
2023-06-03 12:44:12 +03:00
|
|
|
./monitoring.nix
|
2021-10-16 21:18:53 +03:00
|
|
|
];
|
|
|
|
|
|
|
|
networking.nat = {
|
|
|
|
enable = true;
|
|
|
|
externalInterface = interfaces.primary.link;
|
|
|
|
internalIPs = [
|
|
|
|
"10.10.0.0/16"
|
|
|
|
];
|
|
|
|
};
|
|
|
|
|
|
|
|
networking.interfaces.${interfaces.vstub.link} = {
|
|
|
|
virtual = true;
|
|
|
|
ipv4.addresses = [
|
|
|
|
{
|
|
|
|
address = interfaces.vstub.addr;
|
|
|
|
prefixLength = 32;
|
|
|
|
}
|
|
|
|
];
|
|
|
|
};
|
|
|
|
}
|