From 25354cc88b67bede74dbf314949821889ae15e48 Mon Sep 17 00:00:00 2001 From: NAHO <90870942+trueNAHO@users.noreply.github.com> Date: Sat, 19 Jul 2025 11:28:32 +0200 Subject: [PATCH] stylix/mk-target: sort optional arguments --- stylix/mk-target.nix | 32 ++++++++++++++++---------------- 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/stylix/mk-target.nix b/stylix/mk-target.nix index 49f95ca4..32a13df6 100644 --- a/stylix/mk-target.nix +++ b/stylix/mk-target.nix @@ -82,21 +82,6 @@ The default (`true`) is inherited from `mkEnableTargetWith`. - `enableExample` (Boolean or literal expression) - : An example to include on the enable option. The default is calculated - automatically by `mkEnableTargetWith` and depends on `autoEnable` and - whether an `autoEnableExpr` is used. - - `extraOptions` (Attribute set) - : Additional options to be added in the `stylix.targets.${name}` namespace - along the `stylix.targets.${name}.enable` option. - - For example, an extension guard used in the configuration can be declared - as follows: - ```nix - { extension.enable = lib.mkEnableOption "the bloated dependency"; } - ``` - `configElements` (List or attribute set or function or path) : Configuration functions that are automatically safeguarded when any of their arguments is disabled. The provided `cfg` argument conveniently @@ -125,6 +110,21 @@ ) ``` + `enableExample` (Boolean or literal expression) + : An example to include on the enable option. The default is calculated + automatically by `mkEnableTargetWith` and depends on `autoEnable` and + whether an `autoEnableExpr` is used. + + `extraOptions` (Attribute set) + : Additional options to be added in the `stylix.targets.${name}` namespace + along the `stylix.targets.${name}.enable` option. + + For example, an extension guard used in the configuration can be declared + as follows: + ```nix + { extension.enable = lib.mkEnableOption "the bloated dependency"; } + ``` + `generalConfig` (Attribute set or function or path) : This argument mirrors the `configElements` argument but intentionally lacks automatic safeguarding and should only be used for complex @@ -176,9 +176,9 @@ autoEnable ? null, autoEnableExpr ? null, autoWrapEnableExpr ? null, + configElements ? [ ], enableExample ? null, extraOptions ? { }, - configElements ? [ ], generalConfig ? null, imports ? [ ], }@args: