init
This commit is contained in:
42
lib/default.nix
Normal file
42
lib/default.nix
Normal file
@@ -0,0 +1,42 @@
|
||||
{ lib }:
|
||||
let
|
||||
# Internal helpers
|
||||
internal = import ./internal.nix { inherit lib; };
|
||||
|
||||
# IP address operations
|
||||
ip = import ./ip.nix { inherit lib internal; };
|
||||
|
||||
# CIDR/subnet operations
|
||||
cidr = import ./cidr.nix { inherit lib internal ip; };
|
||||
|
||||
# Validation functions
|
||||
validate = import ./validate.nix {
|
||||
inherit
|
||||
lib
|
||||
internal
|
||||
ip
|
||||
cidr
|
||||
;
|
||||
};
|
||||
|
||||
# Range/iteration functions
|
||||
iterate = import ./iterate.nix {
|
||||
inherit
|
||||
lib
|
||||
internal
|
||||
ip
|
||||
cidr
|
||||
;
|
||||
};
|
||||
|
||||
in
|
||||
{
|
||||
inherit
|
||||
ip
|
||||
cidr
|
||||
validate
|
||||
iterate
|
||||
;
|
||||
|
||||
_internal = internal;
|
||||
}
|
||||
Reference in New Issue
Block a user