diff options
| author | Mel <mel@rnrd.eu> | 2025-08-27 13:14:42 +0200 |
|---|---|---|
| committer | Mel <mel@rnrd.eu> | 2025-08-27 13:14:42 +0200 |
| commit | 8a901c24b029719cc8d3ff355f95bceb1dc93b60 (patch) | |
| tree | 0011d01f53a4e03dd571063608148cd899a26e8c /machines | |
| parent | 8df556f5552ed05715514c5b61a7226b1f176591 (diff) | |
| download | network-8a901c24b029719cc8d3ff355f95bceb1dc93b60.tar.zst network-8a901c24b029719cc8d3ff355f95bceb1dc93b60.zip | |
Move WireGuard server peer definitions to configuration option
Signed-off-by: Mel <mel@rnrd.eu>
Diffstat (limited to 'machines')
| -rw-r--r-- | machines/renard/default.nix | 18 | ||||
| -rw-r--r-- | machines/taupe/default.nix | 17 | ||||
| -rw-r--r-- | machines/zibeline/default.nix | 17 |
3 files changed, 52 insertions, 0 deletions
diff --git a/machines/renard/default.nix b/machines/renard/default.nix index d9871c3..4b9386d 100644 --- a/machines/renard/default.nix +++ b/machines/renard/default.nix @@ -48,6 +48,24 @@ "goat" ]; }; + + wireguard.server = { + enable = true; + externalInterface = "ens18"; + + peers = { + mel = { + key = "vnZoHXapCLLUhZ8A8R5W0iJ8LpWVLve29z41kkoT0BU="; + ip = 2; + }; + + # serpentine will use renard for ipv4-only communication (like github) + serpentine = { + key = "izeA+l8uGdHdfVw8B2yIMk4gXdapwyuCzSqLuEQzDFc="; + ip = 3; + }; + }; + }; }; services.nginx.virtualHosts = { diff --git a/machines/taupe/default.nix b/machines/taupe/default.nix index 643c939..ef3fc6a 100644 --- a/machines/taupe/default.nix +++ b/machines/taupe/default.nix @@ -26,6 +26,23 @@ wireguard.server = { enable = true; externalInterface = "enp1s0"; + + peers = { + mel = { + key = "vnZoHXapCLLUhZ8A8R5W0iJ8LpWVLve29z41kkoT0BU="; + ip = 2; + }; + + andrei = { + key = "qqU4uYImLfUohIwl4KBshPtTINFcs0JVALjbmwpfxRg="; + ip = 3; + }; + + sergo = { + key = "qbZGMNIDZFCJC6SHtlyNIlIdGWHELceXClJCcagrj2Y="; + ip = 4; + }; + }; }; }; diff --git a/machines/zibeline/default.nix b/machines/zibeline/default.nix index 82e93bd..9670da2 100644 --- a/machines/zibeline/default.nix +++ b/machines/zibeline/default.nix @@ -27,6 +27,23 @@ wireguard.server = { enable = true; externalInterface = "eth0"; + + peers = { + mel = { + key = "vnZoHXapCLLUhZ8A8R5W0iJ8LpWVLve29z41kkoT0BU="; + ip = 2; + }; + + andrei = { + key = "qqU4uYImLfUohIwl4KBshPtTINFcs0JVALjbmwpfxRg="; + ip = 3; + }; + + sergo = { + key = "qbZGMNIDZFCJC6SHtlyNIlIdGWHELceXClJCcagrj2Y="; + ip = 4; + }; + }; }; }; |
