From 8b7f9c32c3adc3e5fd6996a14a29046c5275ffd7 Mon Sep 17 00:00:00 2001 From: lillecarl Date: Mon, 16 Feb 2026 20:47:45 +0000 Subject: [PATCH] add lib option --- default.nix | 9 +++++---- lib.nix | 15 +++++++++++++++ 2 files changed, 20 insertions(+), 4 deletions(-) create mode 100644 lib.nix diff --git a/default.nix b/default.nix index 9c623bb..3193ea8 100644 --- a/default.nix +++ b/default.nix @@ -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; }; diff --git a/lib.nix b/lib.nix new file mode 100644 index 0000000..c924265 --- /dev/null +++ b/lib.nix @@ -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. + ''; + }; + }; +} +