mirror of
https://github.com/rosenpass/rosenpass.git
synced 2026-02-27 22:13:12 -08:00
fix(integration-test): Don't erase endpoint & allowed ips when setting PSK
This commit is contained in:
committed by
David Niehues
parent
d5162d7b9a
commit
098aff91ab
@@ -41,6 +41,16 @@ let
|
||||
type = lib.types.path;
|
||||
description = "Location of the .osk file on the key exchange server";
|
||||
};
|
||||
|
||||
endpoint = lib.mkOption {
|
||||
type = lib.types.str;
|
||||
description = "IP address of the peer to connect via.";
|
||||
};
|
||||
|
||||
allowedIps = lib.mkOption {
|
||||
type = lib.types.str;
|
||||
description = "IP addresses on the WireGuard VPN the peer is allowed to use";
|
||||
};
|
||||
};
|
||||
};
|
||||
in
|
||||
@@ -67,6 +77,8 @@ in
|
||||
| ${pkgs.wireguard-tools}/bin/wg \
|
||||
set ${instanceCfg.wgInterface} \
|
||||
peer ${instanceCfg.peerPubkey} \
|
||||
endpoint ${instanceCfg.endpoint} \
|
||||
allowed-ips ${instanceCfg.allowedIps} \
|
||||
preshared-key /dev/stdin
|
||||
'';
|
||||
serviceConfig = {
|
||||
|
||||
Reference in New Issue
Block a user