summaryrefslogtreecommitdiff
path: root/Com/Simatime/vpnHosts.nix
diff options
context:
space:
mode:
authorBen Sima <ben@bsima.me>2019-11-06 22:21:48 -0800
committerBen Sima <ben@bsima.me>2019-11-06 22:21:48 -0800
commit376430ca3f4065b35e97f97ed4aaa4062db41440 (patch)
tree631d52ca097f2b859ace29e8c090138f2b81624e /Com/Simatime/vpnHosts.nix
parent7198d79be4d7d0040d768f395f11b19b05622a8d (diff)
add a common buildOS function with preliminary vpn
Diffstat (limited to 'Com/Simatime/vpnHosts.nix')
-rw-r--r--Com/Simatime/vpnHosts.nix37
1 files changed, 37 insertions, 0 deletions
diff --git a/Com/Simatime/vpnHosts.nix b/Com/Simatime/vpnHosts.nix
new file mode 100644
index 0000000..1a66e92
--- /dev/null
+++ b/Com/Simatime/vpnHosts.nix
@@ -0,0 +1,37 @@
+let
+ mkVpnPeer = { address, subnet, ed25519PublicKey, rsaPublicKey }: ''
+ Address = ${address}
+ Subnet = ${subnet}
+ Ed25519PublicKey = ${ed25519PublicKey}
+ ${rsaPublicKey}
+ '';
+in {
+ "com.simatime" = mkVpnPeer {
+ address = "159.89.128.69";
+ subnet = "10.1.1.25";
+ ed25519PublicKey = "TODO";
+ rsaPublicKey = ''
+ TODO
+ '';
+ };
+ "com.simatime.dev" = mkVpnPeer {
+ address = "69.181.254.154";
+ subnet = "10.1.1.21";
+ ed25519PublicKey = "s5/rbuM7WaYqaZH0BP4/mYefrl3uWfaT+Ew4gmSsh8F";
+ rsaPublicKey = ''
+ -----BEGIN RSA PUBLIC KEY-----
+ MIICCgKCAgEAydQHK4jUQnp4ZSqIB/fjfLxILqy/IHR6DPiUp/HustFDOaLKSVM8
+ 75fVtBybiEkUmXLU3Bg8WX9zR+llTf3za1B13w+uJpcR4FS/LhAN/wgHCdgHUb4W
+ D7YZzGUnLhPAu3Ivnu5QZ6vzigqtbPCIFfwGDW2RGjq3iJMag1sM/xBOZrSn+zsZ
+ azCEP/snY30UE5ggrxJSMpZXSpS9u266nTblo8gTwfjdzrC93gmNNIxdHpeYGb0O
+ VGdaMmExq5Ny4flG2qtWA0u8nDscg7bEVIYfPjZr1G2FT5A0Ma4kteu6TeYpQEd9
+ 0if3lRb48iMwh1VBfXBps9Heexz0HjG6EAku2B1mEL5orjmC3jJK0DpuXnwVN5pz
+ B+UrFnqbFykeHxZD5RdAB1tcuHZlJ/mQyZRQMJtkifFLdj4iBBK+si05GpodGhIz
+ iXkMYRIOja9/4EyukDdU2i2yEOmgif6DhIh4awss1b2Crtxs2bg6/xi2Hy63IQEy
+ u8LxuiPGA69NsaFZz49SXXJw11KQt5g7WE0jweYXmT3VO6yZlktGdJjzXyhaw7ma
+ G9VgHvxh+K/mDZ2SXwDcINzwYwZxxqcxcmA4o8glCKQyVHIT5hlo7QkSzK4P+GgN
+ Js+sRDreM6Rha2zcOaJWZ5IO2Xva6AZZ29oO5m4V/CYPCuMAzXwV2GMCAwEAAQ==
+ -----END RSA PUBLIC KEY-----
+ '';
+ };
+}