add lib option

This commit is contained in:
lillecarl 2026-02-16 20:47:45 +00:00
commit 8b7f9c32c3
2 changed files with 19 additions and 3 deletions

View file

@ -23,12 +23,13 @@ let
};
}
./assertions.nix
./internal.nix
./kubernetes.nix
./helm.nix
./kluctl.nix
./validation.nix
./importyaml.nix
./internal.nix
./kluctl.nix
./kubernetes.nix
./lib.nix
./validation.nix
]
++ modules;
};

15
lib.nix Normal file
View file

@ -0,0 +1,15 @@
{ lib, ... }:
{
options = {
lib = lib.mkOption {
default = { };
type = lib.types.attrsOf lib.types.attrs;
description = ''
This option allows modules to define helper functions, constants, etc.
'';
};
};
}