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 {
type = types.submodule { imports = [ ./templates/interface.nix ]; };
default = { };

View File

@@ -208,7 +208,7 @@ in
# TODO: unify this interface
# We should have only clan.modules. (consistent with clan.templates)
inherit (clan-core) clanModules clanLib;
modules = clan-core.clanModules;
modules = config.modules;
inherit inventoryFile;
inventoryValuesPrios =

View File

@@ -8,6 +8,7 @@
# flake.clan.{name} <- clanInternals.{name}
clan = [
"templates"
"modules"
];
# flake.{name} <- clan.{name}
topLevel = [