From 87784510f1ec986dee37e76dc3b6130cfdda4db2 Mon Sep 17 00:00:00 2001 From: SebastianStork Date: Thu, 15 Aug 2024 16:14:48 +0200 Subject: [PATCH] Refactor wrapper module args --- flake/wrappers.nix | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/flake/wrappers.nix b/flake/wrappers.nix index 0ee4423..d85489c 100644 --- a/flake/wrappers.nix +++ b/flake/wrappers.nix @@ -8,8 +8,11 @@ ... }: { - _module.args.wrappers = lib.concatMapAttrs (name: _: { - ${lib.removeSuffix ".nix" name} = import "${self}/wrappers/${name}" { inherit inputs pkgs lib; }; - }) (builtins.readDir "${self}/wrappers"); + _module.args.wrappers = lib.mapAttrs' ( + name: _: + lib.nameValuePair (lib.removeSuffix ".nix" name) ( + import "${self}/wrappers/${name}" { inherit inputs pkgs lib; } + ) + ) (builtins.readDir "${self}/wrappers"); }; }