Skip to content

Commit 4ac96eb

Browse files
authored
easyeffects: use new typecheck (#8090)
1 parent 97e3022 commit 4ac96eb

File tree

1 file changed

+8
-11
lines changed

1 file changed

+8
-11
lines changed

modules/services/easyeffects.nix

Lines changed: 8 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -17,17 +17,14 @@ let
1717
let
1818
baseType = types.attrsOf jsonFormat.type;
1919
in
20-
baseType
21-
// {
22-
check =
23-
v:
24-
baseType.check v
25-
&& lib.elem (lib.head (lib.attrNames v)) [
26-
"input"
27-
"output"
28-
];
29-
description = "EasyEffects input or output JSON preset";
30-
};
20+
types.addCheck baseType (
21+
v:
22+
baseType.check v
23+
&& lib.elem (lib.head (lib.attrNames v)) [
24+
"input"
25+
"output"
26+
]
27+
);
3128

3229
presetOptionType = mkOption {
3330
type = types.nullOr (types.attrsOf presetType);

0 commit comments

Comments
 (0)