feat(buildClan): add clan.modules as output

This commit is contained in:
Johannes Kirschbauer
2025-04-02 13:38:38 +02:00
parent 8a1584b145
commit 542a6a3fd1
3 changed files with 10 additions and 1 deletions

View File

@@ -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 = { };

View File

@@ -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 =

View File

@@ -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 = [