lib/modules: move modules out of lib
This commit is contained in:
@@ -98,6 +98,7 @@
|
|||||||
./lib/filter-clan-core/flake-module.nix
|
./lib/filter-clan-core/flake-module.nix
|
||||||
./lib/flake-module.nix
|
./lib/flake-module.nix
|
||||||
./lib/flake-parts/clan-nixos-test.nix
|
./lib/flake-parts/clan-nixos-test.nix
|
||||||
|
./modules/flake-module.nix
|
||||||
./nixosModules/clanCore/vars/flake-module.nix
|
./nixosModules/clanCore/vars/flake-module.nix
|
||||||
./nixosModules/flake-module.nix
|
./nixosModules/flake-module.nix
|
||||||
./pkgs/clan-cli/clan_cli/tests/flake-module.nix
|
./pkgs/clan-cli/clan_cli/tests/flake-module.nix
|
||||||
|
|||||||
@@ -16,10 +16,10 @@ lib.fix (
|
|||||||
*/
|
*/
|
||||||
callLib = file: args: import file ({ inherit lib clanLib; } // args);
|
callLib = file: args: import file ({ inherit lib clanLib; } // args);
|
||||||
|
|
||||||
evalService = clanLib.callLib ./modules/inventory/distributed-service/evalService.nix { };
|
evalService = clanLib.callLib ./evalService.nix { };
|
||||||
# ------------------------------------
|
# ------------------------------------
|
||||||
# ClanLib functions
|
# ClanLib functions
|
||||||
inventory = clanLib.callLib ./modules/inventory { };
|
inventory = clanLib.callLib ./inventory { };
|
||||||
test = clanLib.callLib ./test { };
|
test = clanLib.callLib ./test { };
|
||||||
flake-inputs = clanLib.callLib ./flake-inputs.nix { };
|
flake-inputs = clanLib.callLib ./flake-inputs.nix { };
|
||||||
# Custom types
|
# Custom types
|
||||||
|
|||||||
@@ -10,12 +10,11 @@ in
|
|||||||
rec {
|
rec {
|
||||||
# TODO: automatically generate this from the directory conventions
|
# TODO: automatically generate this from the directory conventions
|
||||||
imports = [
|
imports = [
|
||||||
./modules/flake-module.nix
|
|
||||||
./clanTest/flake-module.nix
|
./clanTest/flake-module.nix
|
||||||
./introspection/flake-module.nix
|
./introspection/flake-module.nix
|
||||||
./modules/inventory/flake-module.nix
|
|
||||||
./jsonschema/flake-module.nix
|
./jsonschema/flake-module.nix
|
||||||
./types/flake-module.nix
|
./types/flake-module.nix
|
||||||
|
./inventory/flake-module.nix
|
||||||
];
|
];
|
||||||
flake.clanLib =
|
flake.clanLib =
|
||||||
let
|
let
|
||||||
|
|||||||
@@ -10,7 +10,7 @@ in
|
|||||||
inventoryModule = {
|
inventoryModule = {
|
||||||
_file = "clanLib.inventory.module";
|
_file = "clanLib.inventory.module";
|
||||||
imports = [
|
imports = [
|
||||||
../inventoryClass/inventory.nix
|
../../modules/inventoryClass/inventory.nix
|
||||||
];
|
];
|
||||||
_module.args = { inherit clanLib; };
|
_module.args = { inherit clanLib; };
|
||||||
};
|
};
|
||||||
Reference in New Issue
Block a user