diff options
| author | Grisha Shipunov | 2025-01-11 18:45:55 +0100 |
|---|---|---|
| committer | Grisha Shipunov | 2025-01-12 13:46:49 +0100 |
| commit | ee7d6d41413788d1e69d03c21e494eef5ec028b0 (patch) | |
| tree | 911a4d00f1ca37548e7c06cf75a102bd6e83b6f8 /modules/wg/proxy.nix | |
| parent | 33225c4ce40cba96b786675ba8ed65cb0f077964 (diff) | |
add proxy network
Diffstat (limited to 'modules/wg/proxy.nix')
| -rw-r--r-- | modules/wg/proxy.nix | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/modules/wg/proxy.nix b/modules/wg/proxy.nix new file mode 100644 index 0000000..78f78bb --- /dev/null +++ b/modules/wg/proxy.nix @@ -0,0 +1,30 @@ +{ config, ... }: +{ + oxalab.wg = [ + { + networkName = "0xa-proxy"; + CIDRs = [ + "10.89.88.0/24" + "fd31:185d:722f::/48" + ]; + + hosts = { + "cloud" = { + address = [ + "10.89.88.1/24" + "fd31:185d:722f::1/48" + ]; + publicKey = "XdUqSz0W6aqJET/9wNwoRyR8mgPs2dRWm+ijNwzEyE0="; + privateKeyFile = config.sops.secrets."wg/0xa-proxy".path; + endpoint = { + enable = true; + endpoint = "188.245.196.27"; + port = 51821; + publicIface = "enp1s0"; + }; + }; + }; + } + ]; + +} |
