summaryrefslogtreecommitdiff
path: root/systems
diff options
context:
space:
mode:
Diffstat (limited to 'systems')
-rw-r--r--systems/afrodite/networking.nix27
-rw-r--r--systems/odino/networking.nix4
2 files changed, 27 insertions, 4 deletions
diff --git a/systems/afrodite/networking.nix b/systems/afrodite/networking.nix
index 5065ce4..02a128e 100644
--- a/systems/afrodite/networking.nix
+++ b/systems/afrodite/networking.nix
@@ -15,10 +15,33 @@
networkmanager.enable = true;
wg-quick.interfaces."home" = {
- privateKeyFile = "/home/leo/.wireguard/private.key";
+ privateKeyFile = "/home/leo/.wireguard/home";
address = [ "10.69.0.1/24" ];
- peers = [];
+ listenPort = 51820;
+
+ peers = [
+ #{
+ # publicKey = "";
+ # allowedIPs = [ "10.69.0.2/32" ];
+ # persistentKeepalive = 25;
+ #}
+ {
+ publicKey = "99XBoIZ55yradB45bDZ94fc1IQGkNp9argWaT2otRBU=";
+ allowedIPs = [ "10.69.0.3/32" ];
+ persistentKeepalive = 25;
+ }
+ #{
+ # publicKey = "";
+ # allowedIPs = [ "10.69.0.4/32" ];
+ # persistentKeepalive = 25;
+ #}
+ {
+ publicKey = "bMgACe4Pp2VQ0lpMb0Q2RVw/n5KIIg20xT90eesxcEw=";
+ allowedIPs = [ "10.69.0.5/32" ];
+ persistentKeepalive = 25;
+ }
+ ];
};
};
}
diff --git a/systems/odino/networking.nix b/systems/odino/networking.nix
index f68fb87..11490ad 100644
--- a/systems/odino/networking.nix
+++ b/systems/odino/networking.nix
@@ -15,12 +15,12 @@
networkmanager.enable = true;
wg-quick.interfaces."home" = {
- privateKeyFile = "/home/leo/.wireguard/private.key";
+ privateKeyFile = "/home/leo/.wireguard/home";
address = [ "10.69.0.2/24" ];
peers = [
{
- publicKey = "rwUMCdhjQbQt9uGjljfdABj4DSJFgL62bzT13sg8LmU=";
+ publicKey = "629xLQgbpcfGJotfD79p3dNbpiwmp2FQtkUMd/S+M2M=";
allowedIPs = [ "10.69.0.0/24" ];
endpoint = "leoflo.me:51820";
persistentKeepalive = 25;