You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
9 lines
404 B
Nix
9 lines
404 B
Nix
{lib, ...}: intermediateConfig: peerName:
|
|
with import ../lib.nix;
|
|
with lib.attrsets;
|
|
with builtins;
|
|
{
|
|
getPeerPubKey = otherPeerName: attrByPath [otherPeerName "publicKey"] null intermediateConfig.peers;
|
|
getPrivKeyFile = attrByPath [peerName "privateKeyFile"] null intermediateConfig.peers;
|
|
getSubnetPSKFile = subnetName: attrByPath [subnetName "presharedKeyFile"] null intermediateConfig.subnets;
|
|
} |