From 87c7d0bc41205fba85132b77e946bcb549ab06cd Mon Sep 17 00:00:00 2001
From: Florian Sesser <florian@privatestorage.io>
Date: Tue, 25 May 2021 21:28:39 +0000
Subject: [PATCH] Add docs on how to create a VPN client private and pubkey in
 one line

---
 nixos/modules/monitoring/vpn/client.nix | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/nixos/modules/monitoring/vpn/client.nix b/nixos/modules/monitoring/vpn/client.nix
index 5ea27cd9..ea23a5ba 100644
--- a/nixos/modules/monitoring/vpn/client.nix
+++ b/nixos/modules/monitoring/vpn/client.nix
@@ -12,6 +12,8 @@ in {
       default = /run/keys/monitoringvpn/client.key;
       description = ''
         File with base64 private key generated by <command>wg genkey</command>.
+        Shorthand to create private and public key:
+        <command>wg genkey | tee peer_A.key | wg pubkey > peer_A.pub</command>
       '';
     };
     presharedKeyFile = lib.mkOption {
-- 
GitLab