summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
Diffstat (limited to 'modules')
-rw-r--r--modules/wg/default.nix1
-rw-r--r--modules/wg/proxy.nix30
2 files changed, 31 insertions, 0 deletions
diff --git a/modules/wg/default.nix b/modules/wg/default.nix
index 82c1179..c9de551 100644
--- a/modules/wg/default.nix
+++ b/modules/wg/default.nix
@@ -6,5 +6,6 @@
./options.nix
# networks
./mgmt.nix
+ ./proxy.nix
];
}
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";
+ };
+ };
+ };
+ }
+ ];
+
+}