mirror of
https://github.com/SebastianStork/nixos-config.git
synced 2026-01-21 19:51:34 +01:00
18 lines
368 B
Nix
18 lines
368 B
Nix
{
|
|
flake.wrappers.default =
|
|
{
|
|
inputs,
|
|
self,
|
|
pkgs,
|
|
lib,
|
|
...
|
|
}:
|
|
{
|
|
_module.args.wrappers = lib.mapAttrs' (
|
|
name: _:
|
|
lib.nameValuePair (lib.removeSuffix ".nix" name) (
|
|
import "${self}/wrappers/${name}" { inherit inputs pkgs lib; }
|
|
)
|
|
) (builtins.readDir "${self}/wrappers");
|
|
};
|
|
}
|