mirror of
https://github.com/SebastianStork/nixos-config.git
synced 2026-01-21 21:01:34 +01:00
Improve wrapper structure
This commit is contained in:
parent
83433f81ea
commit
30c546b57f
20 changed files with 170 additions and 212 deletions
|
|
@ -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; };
|
||||
}
|
||||
))
|
||||
];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue