From ddc70fb8a8c54e5981e86fb4a6fc9f2c224f2276 Mon Sep 17 00:00:00 2001 From: jacekpoz Date: Thu, 17 Aug 2023 14:47:02 +0200 Subject: [PATCH] feat: add mkMultipleMappingOption same as mkMappingOption but allows for multiple keybinds --- lib/stdlib-extended.nix | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lib/stdlib-extended.nix b/lib/stdlib-extended.nix index a54e5e93..81e2605d 100644 --- a/lib/stdlib-extended.nix +++ b/lib/stdlib-extended.nix @@ -40,6 +40,12 @@ in inherit default description; }; + mkMultipleMappingOption = description: defaults: + self.mkOption { + type = self.types.nullOr self.types.listOf self.types.str; + inherit defaults description; + }; + # Utility function that takes two attrsets: # { someKey = "some_value" } and # { someKey = { description = "Some Description"; }; }