diff --git a/lib/helpers.nix b/lib/helpers.nix index 393ba2ab..a71a3acf 100644 --- a/lib/helpers.nix +++ b/lib/helpers.nix @@ -88,6 +88,8 @@ rec { mkInt = default: mkNullable lib.types.int (toString default); mkBool = default: mkNullable lib.types.bool (if default then "true" else "false"); mkStr = default: mkNullable lib.types.str ''"${default}"''; + mkEnum = enum: default: mkNullable (lib.types.enum enum) ''"${default}"''; + mkEnumFirstDefault = enum: mkEnum enum (head enum); }; mkPlugin = { config, lib, ... }: { name