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.
10 lines
409 B
Nix
10 lines
409 B
Nix
{lib, ...}: intermediateConfig:
|
|
with import ../lib.nix;
|
|
with lib.attrsets;
|
|
with builtins;
|
|
{
|
|
config = {};
|
|
getPeerPubKey = peerName: attrByPath [peerName "publicKey"] null intermediateConfig.peers;
|
|
getPeerPrivKeyFile = peerName: attrByPath [peerName "privateKeyFile"] null intermediateConfig.peers;
|
|
getSubnetPSK = subnetName: attrByPath [subnetName "presharedKeyFile"] null intermediateConfig.subnets;
|
|
} |