From caef39133f187a9ba138c5779a6c33307caaf149 Mon Sep 17 00:00:00 2001 From: Gaetan Lepage Date: Tue, 31 Dec 2024 11:00:20 +0100 Subject: [PATCH] lib/options: mkAttrsOf, mkListOf, mkAttributeSet should accept raw values --- lib/options.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/options.nix b/lib/options.nix index b9ed755c..4cc16dac 100644 --- a/lib/options.nix +++ b/lib/options.nix @@ -182,17 +182,17 @@ rec { mkStr' = args: mkNullableWithRaw' (args // { type = types.str; }); mkStr = pluginDefault: description: mkStr' { inherit pluginDefault description; }; - mkAttributeSet' = args: mkNullable' (args // { type = types.attrs; }); + mkAttributeSet' = args: mkNullableWithRaw' (args // { type = types.attrs; }); mkAttributeSet = pluginDefault: description: mkAttributeSet' { inherit pluginDefault description; }; mkListOf' = - { type, ... }@args: mkNullable' (args // { type = with types; listOf (maybeRaw type); }); + { type, ... }@args: mkNullableWithRaw' (args // { type = with types; listOf (maybeRaw type); }); mkListOf = type: pluginDefault: description: mkListOf' { inherit type pluginDefault description; }; mkAttrsOf' = - { type, ... }@args: mkNullable' (args // { type = with types; attrsOf (maybeRaw type); }); + { type, ... }@args: mkNullableWithRaw' (args // { type = with types; attrsOf (maybeRaw type); }); mkAttrsOf = type: pluginDefault: description: mkAttrsOf' { inherit type pluginDefault description; };