diff options
Diffstat (limited to 'modules')
| -rw-r--r-- | modules/vpn.nix | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/modules/vpn.nix b/modules/vpn.nix new file mode 100644 index 0000000..6772c2a --- /dev/null +++ b/modules/vpn.nix @@ -0,0 +1,31 @@ +{ ... }: + +{ + # these are the common peers that will want to access our hosts + # that run the vpn in different parts of the world. + foundation = { + wireguard.server = { + enable = true; + # has to be set by the individual server running the vpn: + # like, for example: + # externalInterface = "eth0"; + + peers = { + mel = { + key = "vnZoHXapCLLUhZ8A8R5W0iJ8LpWVLve29z41kkoT0BU="; + ip = 2; + }; + + andrei = { + key = "qqU4uYImLfUohIwl4KBshPtTINFcs0JVALjbmwpfxRg="; + ip = 3; + }; + + sergo = { + key = "qbZGMNIDZFCJC6SHtlyNIlIdGWHELceXClJCcagrj2Y="; + ip = 4; + }; + }; + }; + }; +} |
