inventory: add clanLib to specialArgs

This commit is contained in:
Johannes Kirschbauer
2025-10-20 18:24:10 +02:00
committed by Mic92
parent 5b399fd447
commit 3d0c281fd6
3 changed files with 46 additions and 3 deletions

View File

@@ -27,14 +27,16 @@ in
placeholder = "mappedServiceName";
elemType = submoduleWith {
class = "clan.service";
specialArgs = {
exports = config.exports;
directory = directory;
clanLib = specialArgs.clanLib;
};
modules = [
(
{ name, ... }:
{
_module.args._ctx = [ name ];
_module.args.exports = config.exports;
_module.args.directory = directory;
}
)
./service-module.nix