notes/vpm: update information about creating qr code with configs
This commit is contained in:
parent
a6d5a32396
commit
4016eb1b71
2 changed files with 15 additions and 2 deletions
|
@ -1,4 +1,3 @@
|
||||||
# use nix-build -E (import <system>/misc/wg-client-conf.nix {})
|
|
||||||
{ pkgs ? import <nixpkgs> { }
|
{ pkgs ? import <nixpkgs> { }
|
||||||
, address
|
, address
|
||||||
, privateKey
|
, privateKey
|
||||||
|
|
14
notes/vpn.md
14
notes/vpn.md
|
@ -8,6 +8,20 @@ wg genkey > ./private
|
||||||
wg pubkey < ./private > ./public
|
wg pubkey < ./private > ./public
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
||||||
|
## Configuration
|
||||||
|
|
||||||
|
Then create QR code with configuration using the following command:
|
||||||
|
|
||||||
|
```sh
|
||||||
|
nix build -f ./misc/wg-client-conf.nix \
|
||||||
|
--argstr address "" \
|
||||||
|
--argstr dns "" \
|
||||||
|
--argstr privateKey "$(cat private)" \
|
||||||
|
--argstr serverPublicKey "" \
|
||||||
|
--argstr serverEndpoint ""
|
||||||
|
```
|
||||||
|
|
||||||
# References:
|
# References:
|
||||||
|
|
||||||
- https://nixos.wiki/wiki/WireGuard
|
- https://nixos.wiki/wiki/WireGuard
|
||||||
|
|
Loading…
Reference in a new issue