fix(clanLib): propagate clanLib into module apply
This commit is contained in:
@@ -3,12 +3,13 @@
|
||||
## Add any logic to ./module.nix
|
||||
{
|
||||
lib,
|
||||
clanLib,
|
||||
...
|
||||
}:
|
||||
{
|
||||
flakePartsModule = {
|
||||
imports = [
|
||||
./interface.nix
|
||||
(lib.modules.importApply ./interface.nix { inherit clanLib; })
|
||||
./module.nix
|
||||
];
|
||||
};
|
||||
|
||||
@@ -1,9 +1,13 @@
|
||||
{ pkgs, lib }:
|
||||
{
|
||||
pkgs,
|
||||
lib,
|
||||
clanLib,
|
||||
}:
|
||||
let
|
||||
eval = lib.evalModules {
|
||||
class = "nixos";
|
||||
modules = [
|
||||
./interface.nix
|
||||
(lib.modules.importApply ./interface.nix { inherit clanLib; })
|
||||
];
|
||||
};
|
||||
evalDocs = pkgs.nixosOptionsDoc {
|
||||
|
||||
@@ -19,6 +19,7 @@ in
|
||||
let
|
||||
jsonDocs = import ./eval-docs.nix {
|
||||
inherit pkgs lib;
|
||||
inherit (self) clanLib;
|
||||
};
|
||||
in
|
||||
{
|
||||
|
||||
@@ -18,7 +18,7 @@ module:
|
||||
;
|
||||
};
|
||||
modules = [
|
||||
./interface.nix
|
||||
(lib.modules.importApply ./interface.nix { inherit (clan-core) clanLib; })
|
||||
module
|
||||
{
|
||||
inherit specialArgs;
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
{ clanLib }:
|
||||
{
|
||||
lib,
|
||||
self,
|
||||
@@ -94,7 +95,11 @@ in
|
||||
};
|
||||
|
||||
inventory = lib.mkOption {
|
||||
type = types.submodule { imports = [ ../inventory/build-inventory/interface.nix ]; };
|
||||
type = types.submodule {
|
||||
imports = [
|
||||
(lib.modules.importApply ../inventory/build-inventory/interface.nix { inherit clanLib; })
|
||||
];
|
||||
};
|
||||
description = ''
|
||||
The `Inventory` submodule.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user