feat(flake): modular structure with flake-file and flake-parts

This commit is contained in:
Sk7Str1p3 2026-04-12 20:45:04 +03:00
parent 4a576b32ff
commit 366e75c9d1
No known key found for this signature in database
GPG key ID: 4DD995933D06D43B
5 changed files with 149 additions and 8 deletions

17
flake/inputs/default.nix Normal file
View file

@ -0,0 +1,17 @@
# 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`.
*/
import ./core.nix