feat(buildClan): add clan.modules as output
This commit is contained in:
@@ -72,6 +72,14 @@ in
|
|||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
|
modules = lib.mkOption {
|
||||||
|
type = types.attrsOf types.raw;
|
||||||
|
default = { };
|
||||||
|
description = ''
|
||||||
|
An attribute set of exported modules.
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
|
||||||
templates = lib.mkOption {
|
templates = lib.mkOption {
|
||||||
type = types.submodule { imports = [ ./templates/interface.nix ]; };
|
type = types.submodule { imports = [ ./templates/interface.nix ]; };
|
||||||
default = { };
|
default = { };
|
||||||
|
|||||||
@@ -208,7 +208,7 @@ in
|
|||||||
# TODO: unify this interface
|
# TODO: unify this interface
|
||||||
# We should have only clan.modules. (consistent with clan.templates)
|
# We should have only clan.modules. (consistent with clan.templates)
|
||||||
inherit (clan-core) clanModules clanLib;
|
inherit (clan-core) clanModules clanLib;
|
||||||
modules = clan-core.clanModules;
|
modules = config.modules;
|
||||||
|
|
||||||
inherit inventoryFile;
|
inherit inventoryFile;
|
||||||
inventoryValuesPrios =
|
inventoryValuesPrios =
|
||||||
|
|||||||
@@ -8,6 +8,7 @@
|
|||||||
# flake.clan.{name} <- clanInternals.{name}
|
# flake.clan.{name} <- clanInternals.{name}
|
||||||
clan = [
|
clan = [
|
||||||
"templates"
|
"templates"
|
||||||
|
"modules"
|
||||||
];
|
];
|
||||||
# flake.{name} <- clan.{name}
|
# flake.{name} <- clan.{name}
|
||||||
topLevel = [
|
topLevel = [
|
||||||
|
|||||||
Reference in New Issue
Block a user