feat(lib): init callLib; helper to bootstrap clanLib

This commit is contained in:
Johannes Kirschbauer
2025-03-30 16:11:04 +02:00
parent 77b6afd034
commit 0083ea86df
2 changed files with 9 additions and 4 deletions

View File

@@ -10,7 +10,9 @@ let
pathExists
;
in
{
rec {
# We should remove this.
# It would enforce treating at least 'lib' as a module in a whole
imports = filter pathExists [
./jsonschema/flake-module.nix
./inventory/flake-module.nix
@@ -18,9 +20,10 @@ in
./values/flake-module.nix
./distributed-service/flake-module.nix
];
flake.lib = import ./default.nix {
inherit lib inputs;
flake.clanLib = import ./default.nix {
inherit lib inputs self;
inherit (inputs) nixpkgs;
clan-core = self;
};
# TODO: remove this legacy alias
flake.lib = flake.clanLib;
}