nixos/flake/inputs/default.nix
Sk7Str1p3 75b42c0177
docs(flake/inputs): fix generation
`{lib,...}` as first line was breaking generator logic
2026-06-24 11:59:52 +00:00

22 lines
882 B
Nix
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# Flake inputs
/**
Declares configurations dependencies. Inputs
are sorted by their purpose and functionality.
See sub chapters to learn which inputs are intended for.
> [!WARNING]
> Because nix doesnt support splitting flake inputs into several files,
> `flake.nix` is generated via [flake-file](https://github.com/vic/flake-file). Then adding new input,
> remember running `nix run .#write-flake` to apply changes!
>
> In next chapters, you'll see attributes of type `flake.inputs.{class}.{input}`.
> Then accessing inputs in repl, remove {class}, so instead of calling e.g. `flake.inputs.core.nixpkgs`,
> you call `flake.inputs.nixpkgs`.
*/
{ lib, ... }:
lib.foldl' (acc: value: lib.recursiveUpdate acc value) { } (
map (file: import ./${file}) (
builtins.filter (name: name != "default.nix") (builtins.attrNames (builtins.readDir ./.))
)
)