tools/networks: init
This commit is contained in:
parent
f7edb71fea
commit
ec023a1744
2 changed files with 21 additions and 0 deletions
|
@ -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
20
tools/networks.nix
Normal 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
|
Loading…
Reference in a new issue