1
0
Fork 0
mirror of https://github.com/nix-community/home-manager.git synced 2025-11-08 11:36:05 +01:00

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
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

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);