WIP network rework part 2

This commit is contained in:
kat witch 2021-08-12 05:18:57 +01:00
parent 2dbe01524d
commit 8f42a2fda8
No known key found for this signature in database
GPG key ID: 1B477797DCA5EC72
13 changed files with 76 additions and 43 deletions

View file

@ -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