35 lines
No EOL
872 B
Nix
35 lines
No EOL
872 B
Nix
{ inputs, ... }:
|
|
{
|
|
# setup of tools for dendritic pattern
|
|
|
|
# Simplify Nix Flakes with the module system
|
|
# https://github.com/hercules-ci/flake-parts
|
|
|
|
# Generate flake.nix from module options.
|
|
# https://github.com/vic/flake-file
|
|
|
|
# Import all nix files in a directory tree.
|
|
# https://github.com/vic/import-tree
|
|
|
|
flake-file.inputs = {
|
|
flake-parts.url = "github:hercules-ci/flake-parts";
|
|
flake-file.url = "github:vic/flake-file";
|
|
import-tree.url = "github:vic/import-tree";
|
|
};
|
|
|
|
imports = [
|
|
inputs.flake-parts.flakeModules.modules
|
|
inputs.flake-file.flakeModules.default
|
|
];
|
|
|
|
# import all modules recursively with import-tree
|
|
flake-file.outputs = ''
|
|
inputs: inputs.flake-parts.lib.mkFlake { inherit inputs; } (inputs.import-tree ./modules)
|
|
'';
|
|
|
|
# set flake.systems
|
|
systems = [
|
|
"aarch64-linux"
|
|
"x86_64-linux"
|
|
];
|
|
} |