feat(lib/modules): remove dependency on self

This commit is contained in:
Johannes Kirschbauer
2025-03-30 16:12:01 +02:00
parent 40740860c0
commit 06dd2ebf8c
2 changed files with 4 additions and 6 deletions

View File

@@ -1,9 +1,9 @@
{ lib, self }:
{ lib, clanLib }:
let
# Trim the .nix extension from a filename
trimExtension = name: builtins.substring 0 (builtins.stringLength name - 4) name;
jsonWithoutHeader = self.lib.jsonschema {
jsonWithoutHeader = clanLib.jsonschema {
includeDefaults = true;
header = { };
};
@@ -13,7 +13,7 @@ let
lib.mapAttrs (
_moduleName: rolesOptions:
lib.mapAttrs (_roleName: options: jsonWithoutHeader.parseOptions options { }) rolesOptions
) (self.lib.evalClanModulesWithRoles modules);
) (clanLib.evalClanModulesWithRoles modules);
evalFrontmatter =
{