Improve wrapper structure

This commit is contained in:
SebastianStork 2024-05-20 11:41:01 +02:00
parent 83433f81ea
commit 30c546b57f
20 changed files with 170 additions and 212 deletions

View file

@ -3,7 +3,7 @@
pkgs,
lib,
...
}:
}@moduleArgs:
let
assembleWrapper =
wrapperConfig:
@ -17,7 +17,7 @@ in
(lib.filterAttrs (name: value: name != "default.nix"))
(lib.concatMapAttrs (
name: _: {
${lib.removeSuffix ".nix" name} = import ./${name} { inherit assembleWrapper pkgs lib; };
${lib.removeSuffix ".nix" name} = import ./${name} { inherit assembleWrapper moduleArgs; };
}
))
];