Inventory: move to lib.inventory
This commit is contained in:
parent
e39c7580d6
commit
62fa35bbad
@ -53,8 +53,6 @@
|
|||||||
./nixosModules/flake-module.nix
|
./nixosModules/flake-module.nix
|
||||||
./pkgs/flake-module.nix
|
./pkgs/flake-module.nix
|
||||||
./templates/flake-module.nix
|
./templates/flake-module.nix
|
||||||
|
|
||||||
./inventory/flake-module.nix
|
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
@ -33,7 +33,7 @@ let
|
|||||||
mergedInventory =
|
mergedInventory =
|
||||||
(lib.evalModules {
|
(lib.evalModules {
|
||||||
modules = [
|
modules = [
|
||||||
./interface.nix
|
clan-core.lib.inventory.interface
|
||||||
{ inherit meta; }
|
{ inherit meta; }
|
||||||
(
|
(
|
||||||
if
|
if
|
||||||
@ -77,7 +77,7 @@ let
|
|||||||
];
|
];
|
||||||
}).config;
|
}).config;
|
||||||
|
|
||||||
buildInventory = import ./inventory.nix { inherit lib clan-core; };
|
inherit (clan-core.lib.inventory) buildInventory;
|
||||||
|
|
||||||
# map from machine name to service configuration
|
# map from machine name to service configuration
|
||||||
# { ${machineName} :: Config }
|
# { ${machineName} :: Config }
|
||||||
|
@ -6,6 +6,7 @@
|
|||||||
}:
|
}:
|
||||||
{
|
{
|
||||||
evalClanModules = import ./eval-clan-modules { inherit clan-core nixpkgs lib; };
|
evalClanModules = import ./eval-clan-modules { inherit clan-core nixpkgs lib; };
|
||||||
|
inventory = import ./inventory { inherit lib clan-core; };
|
||||||
jsonschema = import ./jsonschema { inherit lib; };
|
jsonschema = import ./jsonschema { inherit lib; };
|
||||||
modules = import ./description.nix { inherit clan-core lib; };
|
modules = import ./description.nix { inherit clan-core lib; };
|
||||||
buildClan = import ./build-clan { inherit clan-core lib nixpkgs; };
|
buildClan = import ./build-clan { inherit clan-core lib nixpkgs; };
|
||||||
|
@ -78,6 +78,7 @@ in
|
|||||||
};
|
};
|
||||||
|
|
||||||
options.services = lib.mkOption {
|
options.services = lib.mkOption {
|
||||||
|
default = { };
|
||||||
type = t.attrsOf (
|
type = t.attrsOf (
|
||||||
t.attrsOf (
|
t.attrsOf (
|
||||||
t.submodule {
|
t.submodule {
|
5
lib/inventory/default.nix
Normal file
5
lib/inventory/default.nix
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
{ lib, clan-core }:
|
||||||
|
{
|
||||||
|
buildInventory = import ./build-inventory { inherit lib clan-core; };
|
||||||
|
interface = ./build-inventory/interface.nix;
|
||||||
|
}
|
@ -1,11 +1,6 @@
|
|||||||
|
{ ... }:
|
||||||
{
|
{
|
||||||
inputs,
|
# flake.inventory = import ./default.nix { inherit inputs self lib; };
|
||||||
self,
|
|
||||||
lib,
|
|
||||||
...
|
|
||||||
}:
|
|
||||||
{
|
|
||||||
flake.inventory = import ./default.nix { inherit inputs self lib; };
|
|
||||||
perSystem =
|
perSystem =
|
||||||
{ pkgs, config, ... }:
|
{ pkgs, config, ... }:
|
||||||
{
|
{
|
Loading…
Reference in New Issue
Block a user