feat(flake): ability to call lib in files with inputs

This commit is contained in:
Sk7Str1p3 2026-06-25 13:11:03 +00:00
parent 47117a1873
commit 549c3b3fd8
Signed by: Sk7Str1p3
SSH key fingerprint: SHA256:GcXqjfo0IHK280c6aH9o5SmcOWyqMS8gjfOtDQ3gr/Q
3 changed files with 3 additions and 2 deletions

View file

@ -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 ./.))
)
)