1
0
Fork 0
mirror of https://github.com/nix-community/home-manager.git synced 2025-11-08 19:46: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 let
baseType = types.attrsOf jsonFormat.type; baseType = types.attrsOf jsonFormat.type;
in in
baseType types.addCheck baseType (
// { v:
check = baseType.check v
v: && lib.elem (lib.head (lib.attrNames v)) [
baseType.check v "input"
&& lib.elem (lib.head (lib.attrNames v)) [ "output"
"input" ]
"output" );
];
description = "EasyEffects input or output JSON preset";
};
presetOptionType = mkOption { presetOptionType = mkOption {
type = types.nullOr (types.attrsOf presetType); type = types.nullOr (types.attrsOf presetType);