modules: add explicit class constraints

This commit is contained in:
Johannes Kirschbauer
2025-07-11 14:38:59 +02:00
parent b969b84a43
commit bb20e3926f
2 changed files with 2 additions and 0 deletions

View File

@@ -22,6 +22,7 @@ in
type = attrsWith { type = attrsWith {
placeholder = "mappedServiceName"; placeholder = "mappedServiceName";
elemType = submoduleWith { elemType = submoduleWith {
class = "clan.service";
modules = [ modules = [
( (
{ name, ... }: { name, ... }:

View File

@@ -122,6 +122,7 @@ in
evalServices = evalServices =
{ modules, prefix }: { modules, prefix }:
lib.evalModules { lib.evalModules {
class = "clan";
specialArgs = { specialArgs = {
inherit clanLib; inherit clanLib;
_ctx = prefix; _ctx = prefix;