From 0336938b8055408884942e1c547dcb48e909d103 Mon Sep 17 00:00:00 2001 From: Florian Sesser <florian@privatestorage.io> Date: Sun, 16 May 2021 22:11:39 +0000 Subject: [PATCH] docs --- nixos/modules/monitoring/vpn/client.nix | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/nixos/modules/monitoring/vpn/client.nix b/nixos/modules/monitoring/vpn/client.nix index 93828a5b..8c443321 100644 --- a/nixos/modules/monitoring/vpn/client.nix +++ b/nixos/modules/monitoring/vpn/client.nix @@ -12,8 +12,6 @@ in { default = /var/secrets/monitoringvpn/client.key; description = '' File with base64 private key generated by <command>wg genkey</command>. - Shorthand for public and private key: - <command>wg genkey | tee peer_A.key | wg pubkey > peer_A.pub</command> ''; }; publicKeyFile = lib.mkOption { @@ -21,8 +19,11 @@ in { example = lib.literalExample /var/secrets/monitoringvpn/host.pub; description = '' File with base64 public key generated by <command>cat private.key | wg pubkey > pubkey.pub</command>. + Cannot have white space or new lines. Shorthand for public and private key: <command>wg genkey | tee peer_A.key | wg pubkey > peer_A.pub</command> + TBD the pub files must not have white space or new lines, remove with + them, for example <command>perl -pe 's/\s+//g'</command> ''; }; presharedKeyFile = lib.mkOption { -- GitLab