feat(flake): ability to call lib in files with inputs
This commit is contained in:
parent
47117a1873
commit
549c3b3fd8
3 changed files with 3 additions and 2 deletions
|
|
@ -16,7 +16,7 @@
|
|||
*/
|
||||
{ lib, ... }:
|
||||
lib.foldl' (acc: value: lib.recursiveUpdate acc value) { } (
|
||||
map (file: import ./${file}) (
|
||||
map (file: import ./${file} { inherit lib; }) (
|
||||
builtins.filter (name: name != "default.nix") (builtins.attrNames (builtins.readDir ./.))
|
||||
)
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue