mirror of
https://github.com/SebastianStork/nixos-config.git
synced 2026-01-21 21:01:34 +01:00
Simplify wrapper imports
This commit is contained in:
parent
43c8adddb6
commit
42ebeaf86e
19 changed files with 298 additions and 248 deletions
19
flake/wrappers.nix
Normal file
19
flake/wrappers.nix
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
{
|
||||
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");
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue