easyeffects: use new typecheck (#8090)

This commit is contained in:
Christoph Hollizeck
2025-10-31 03:39:41 +01:00
committed by GitHub
parent 97e3022a8d
commit 4ac96eb21c

View File

@@ -17,17 +17,14 @@ let
let
baseType = types.attrsOf jsonFormat.type;
in
baseType
// {
check =
v:
baseType.check v
&& lib.elem (lib.head (lib.attrNames v)) [
"input"
"output"
];
description = "EasyEffects input or output JSON preset";
};
types.addCheck baseType (
v:
baseType.check v
&& lib.elem (lib.head (lib.attrNames v)) [
"input"
"output"
]
);
presetOptionType = mkOption {
type = types.nullOr (types.attrsOf presetType);