feat(flake/inputs): recursively import all files instead of manual

importing
This commit is contained in:
Sk7Str1p3 2026-05-13 21:00:05 +03:00
parent faca496c63
commit e1e3a9c404
No known key found for this signature in database
GPG key ID: 4DD995933D06D43B
2 changed files with 8 additions and 3 deletions

View file

@ -8,7 +8,7 @@
Essentially, `flake.nix` is like `Cargo.toml` in Rust or `package.json` in Node.js, but for an entire operating system.
*/
{ inputs, ... }:
{ inputs, lib, ... }:
{
imports = [
inputs.flake-file.flakeModules.default
@ -19,7 +19,7 @@
systems = [ "x86_64-linux" ];
flake-file.inputs = import ./inputs;
flake-file.inputs = import ./inputs { inherit lib; };
flake-file.outputs = "inputs: inputs.flake-parts.lib.mkFlake { inherit inputs; } ./flake";
flake-file.description = "A very basic flake";
}