From 25c21fa8f3116232762ded37060b64a452174a56 Mon Sep 17 00:00:00 2001 From: Sander Date: Fri, 27 Sep 2024 00:53:27 +0400 Subject: [PATCH] chrore: add missing task option descriptions --- src/modules/tasks.nix | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/src/modules/tasks.nix b/src/modules/tasks.nix index d3f799a1b..3e1ce5bce 100644 --- a/src/modules/tasks.nix +++ b/src/modules/tasks.nix @@ -61,6 +61,7 @@ let command = config.command; input = config.input; }; + description = "Internal configuration for the task."; }; exports = lib.mkOption { type = types.listOf types.str; @@ -92,13 +93,17 @@ let tasksJSON = (lib.mapAttrsToList (name: value: { inherit name; } // value.config) config.tasks); in { - options.tasks = lib.mkOption { - type = types.attrsOf taskType; - }; + options = { + tasks = lib.mkOption { + type = types.attrsOf taskType; + description = "A set of tasks."; + }; - options.task.config = lib.mkOption { - type = types.package; - internal = true; + task.config = lib.mkOption { + type = types.package; + internal = true; + description = "The generated tasks.json file."; + }; }; config = {