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