mirror of
https://github.com/gensokyo-zone/infrastructure.git
synced 2026-02-09 20:39:18 -08:00
WIP network rework part 2
This commit is contained in:
parent
2dbe01524d
commit
8f42a2fda8
13 changed files with 76 additions and 43 deletions
|
|
@ -4,6 +4,6 @@ let
|
|||
networks = config.network.addresses;
|
||||
filteredNetworks = filterAttrs (n: v: elem n networkFilter && v.enable) networks;
|
||||
networkValues = attrValues filteredNetworks;
|
||||
addressList = concatMap (n: n.out.addressList) networkValues;
|
||||
addressList = concatMap (n: n.out.identifierList) networkValues;
|
||||
hostBlocks = map (host: nameValuePair host block) addressList;
|
||||
in listToAttrs hostBlocks
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue