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

@ -4,6 +4,7 @@
Essential inputs that form Essential inputs that form
the foundation of the NixOS configuration the foundation of the NixOS configuration
*/ */
{ ... }:
{ {
/** /**
The Core of NixOS, providing packages and modules. The Core of NixOS, providing packages and modules.

View file

@ -16,7 +16,7 @@
*/ */
{ lib, ... }: { lib, ... }:
lib.foldl' (acc: value: lib.recursiveUpdate acc value) { } ( 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 ./.)) builtins.filter (name: name != "default.nix") (builtins.attrNames (builtins.readDir ./.))
) )
) )

View file

@ -3,7 +3,7 @@
/** /**
Inputs providing modules or packages for user configurations. Check next chapters to learn more. Inputs providing modules or packages for user configurations. Check next chapters to learn more.
*/ */
{ { ... }: {
/** /**
System for managing a user environment. System for managing a user environment.
Allows declarative configuration of user specific (non-global) packages and dotfiles. Allows declarative configuration of user specific (non-global) packages and dotfiles.