From d4bb02a494f6fe34503b8998f48ca786d716ea89 Mon Sep 17 00:00:00 2001
From: coolneng <akasroua@gmail.com>
Date: Tue, 30 Mar 2021 17:13:34 +0200
Subject: [PATCH] Add caravanserai to Wireguard peers

---
 modules/networking.nix | 9 +++++++--
 1 file changed, 7 insertions(+), 2 deletions(-)

diff --git a/modules/networking.nix b/modules/networking.nix
index 16249e7..8e532dc 100644
--- a/modules/networking.nix
+++ b/modules/networking.nix
@@ -82,13 +82,18 @@ in {
     wg0 = {
       ips = [ "10.9.0.1/24" ];
       listenPort = 1194;
-      privateKeyFile = "/home/coace/.wg/keys/privatekey";
+      privateKeyFile = "/home/coace/.wg/server/privatekey";
       peers = [
-        # Amin
+        # panacea
         {
           publicKey = "XMkTztU2Y8hw6Fu/2o4Gszij+EmNacvFMXuZyHS1n38=";
           allowedIPs = [ "10.9.0.2/32" ];
         }
+        # caravanserai
+        {
+          publicKey = "4jiEKaPjNPU3JghfwLyArRhCKZmT8VYN07iw0SL/eHc=";
+          allowedIPs = [ "10.9.0.3/32" ];
+        }
       ];
     };
   };