diff options
| author | Mel <mel@rnrd.eu> | 2026-05-01 18:40:37 +0200 |
|---|---|---|
| committer | Mel <mel@rnrd.eu> | 2026-05-01 18:40:37 +0200 |
| commit | a4ab740d07706d86503b84d36addcbbbf7a4944b (patch) | |
| tree | 24c52a29b9a3182149db37e332bee3af9b9f6014 /assets | |
| parent | c9f2260dc0414d451d551f8ffdf1f573e7be41ff (diff) | |
| download | network-a4ab740d07706d86503b84d36addcbbbf7a4944b.tar.zst network-a4ab740d07706d86503b84d36addcbbbf7a4944b.zip | |
Re-add simple VPN and simplify module with shared users with tunnel
Signed-off-by: Mel <mel@rnrd.eu>
Diffstat (limited to 'assets')
| -rw-r--r-- | assets/vpn.nix | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/assets/vpn.nix b/assets/vpn.nix new file mode 100644 index 0000000..e30438b --- /dev/null +++ b/assets/vpn.nix @@ -0,0 +1,33 @@ +# shared vpn definitions for wireguard, used by both the tunnel +# and the plain vpn module. + +{ + # the public key of the shared wireguard key used by all vpn hosts. + # the matching private key is the secret `wg-private-key`. + public = "s5yyPCJiN0uqW0jzKIbYCF7I9TthymiRzpNt466XeWk="; + + # users allowed to connect to any wireguard-based service. + # their ip is always a template, with 'X' representing the + # network subnet they are connecting to. + users = { + mel = { + key = "vnZoHXapCLLUhZ8A8R5W0iJ8LpWVLve29z41kkoT0BU="; + ip = "10.123.X.101"; + }; + + andrei = { + key = "qqU4uYImLfUohIwl4KBshPtTINFcs0JVALjbmwpfxRg="; + ip = "10.123.X.102"; + }; + + sergo = { + key = "qbZGMNIDZFCJC6SHtlyNIlIdGWHELceXClJCcagrj2Y="; + ip = "10.123.X.103"; + }; + + fedor = { + key = "tEO9r8+jTpu8TBRmZ+/v087IgD/QfmofLUKs249i/F0="; + ip = "10.123.X.104"; + }; + }; +} |
