mirror of
https://github.com/SebastianStork/nixos-config.git
synced 2026-01-21 16:21:34 +01:00
Refactor wrapper module args
This commit is contained in:
parent
13ea22656c
commit
87784510f1
1 changed files with 6 additions and 3 deletions
|
|
@ -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");
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue