Fixed bug with key providers in static configuration
parent
e3c89e816f
commit
f45752f5d7
@ -1,10 +1,10 @@
|
|||||||
{lib, ...}: intermediateConfig:
|
{lib, ...}: intermediateConfig: peerName:
|
||||||
with import ../lib.nix;
|
with import ../lib.nix;
|
||||||
with lib.attrsets;
|
with lib.attrsets;
|
||||||
with builtins;
|
with builtins;
|
||||||
{
|
{
|
||||||
config = {};
|
config = {};
|
||||||
getPeerPubKey = peerName: attrByPath [peerName "publicKey"] null intermediateConfig.peers;
|
getPeerPubKey = otherPeerName: attrByPath [otherPeerName "publicKey"] null intermediateConfig.peers;
|
||||||
getPeerPrivKeyFile = peerName: attrByPath [peerName "privateKeyFile"] null intermediateConfig.peers;
|
getPrivKeyFile = attrByPath [peerName "privateKeyFile"] null intermediateConfig.peers;
|
||||||
getSubnetPSK = subnetName: attrByPath [subnetName "presharedKeyFile"] null intermediateConfig.subnets;
|
getSubnetPSKFile = subnetName: attrByPath [subnetName "presharedKeyFile"] null intermediateConfig.subnets;
|
||||||
}
|
}
|
Loading…
Reference in New Issue