tools/networks: init

This commit is contained in:
Max Headroom 2021-10-16 17:03:40 +02:00
parent f7edb71fea
commit ec023a1744
2 changed files with 21 additions and 0 deletions

View file

@ -2,6 +2,7 @@ let toolsets = {
meta = import ./meta.nix;
identity = import ./identity.nix { inherit toolsets; };
networks = import ./networks.nix { inherit toolsets; };
};
in toolsets // {
all = args: (builtins.mapAttrs (_: x: x args) toolsets) // { inherit (toolsets) meta; };

20
tools/networks.nix Normal file
View file

@ -0,0 +1,20 @@
# internal interface
{ toolsets }:
# external interface
{ lib ? null, ... }:
let
tools = (self: {
all = {};
ipv4.all = {};
ipv4.internal = {
addr = "10.0.0.0/8";
vpn = {
addr = "10.100.0.0/16";
};
};
}) tools;
in tools