mirror of
https://git.mediani.de/mirrors_public/oddlama_nixos-extra-modules.git
synced 2025-10-10 22:10:38 +02:00
perf: allow caching wireguard network information to significantly speed up evaluation
This commit is contained in:
parent
ba53e1a0be
commit
0de9c0751b
3 changed files with 27 additions and 8 deletions
|
@ -30,7 +30,7 @@ in {
|
|||
topology.networks = mkMerge (
|
||||
flip mapAttrsToList config.wireguard (
|
||||
wgName: _: let
|
||||
inherit (lib.wireguard inputs wgName) networkCidrs;
|
||||
inherit (lib.wireguard.getNetwork inputs wgName) networkCidrs;
|
||||
in {
|
||||
${networkId wgName} = {
|
||||
name = mkDefault "Wireguard network '${wgName}'";
|
||||
|
@ -47,7 +47,7 @@ in {
|
|||
flip mapAttrsToList config.wireguard (
|
||||
wgName: wgCfg: let
|
||||
inherit
|
||||
(lib.wireguard inputs wgName)
|
||||
(lib.wireguard.getNetwork inputs wgName)
|
||||
participatingServerNodes
|
||||
wgCfgOf
|
||||
;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue