Files
clan-core/lib/flake-module.nix
2025-03-30 16:11:04 +02:00

30 lines
574 B
Nix

{
lib,
inputs,
self,
...
}:
let
inherit (lib)
filter
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
./build-clan/flake-module.nix
./values/flake-module.nix
./distributed-service/flake-module.nix
];
flake.clanLib = import ./default.nix {
inherit lib inputs self;
inherit (inputs) nixpkgs;
};
# TODO: remove this legacy alias
flake.lib = flake.clanLib;
}