1
1
Fork 1
mirror of https://github.com/oddlama/nix-config.git synced 2025-10-11 07:10:39 +02:00

feat(apps): add wireguard peer selection for use with qr code generation later

This commit is contained in:
oddlama 2023-04-11 17:50:19 +02:00
parent 62e7d4ec91
commit b250a6b1b3
No known key found for this signature in database
GPG key ID: 14EFE510775FE39A
3 changed files with 20 additions and 5 deletions

View file

@ -174,7 +174,7 @@ in {
in {
assertions =
concatMap (netCfg: let
inherit netCfg wgName;
inherit (netCfg) wgName;
externalPeers = concatMap (n: attrNames nodes.${n}.config.extra.wireguard.networks.${wgName}.externalPeers) netCfg.nodesWithThisNetwork;
duplicatePeers = duplicates externalPeers;
usedAddresses =