Fix(clan.nix): create public attributes from 'clan', dont expose them from clanInternals

ClanInternals is already exposed at the toplevel the API can access anything
This also deduplicated 'templates' and 'modules' into 'clan.modules' and 'clan.templates' repsectively
Only this one path is its source
This commit is contained in:
Johannes Kirschbauer
2025-06-10 18:51:42 +02:00
parent e322c92b2e
commit 78563b0544
3 changed files with 7 additions and 6 deletions

View File

@@ -150,7 +150,9 @@ in
inventory._inventoryFile = file;
}
];
inventory = inventoryLoaded;
# Weirdly this works only if it is a function
# This seems to be a bug in nixpkgs
inventory = _: lib.setDefaultModuleLocation file inventoryLoaded;
}
)
{