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
|
|
@ -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.
|
||||||
|
|
|
||||||
|
|
@ -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 ./.))
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
|
|
||||||
|
|
@ -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.
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue