flake: use import-tree for packages directory
- Move overlays.nix into packages/overlays.nix with dynamic pattern - Update flake.nix to use packagesModule from import-tree - Delete centralized packages.nix (packages are now self-contained) The packages directory is now fully self-contained with each package exporting its own flake output and overlays auto-including all packages. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
parent
829fde6a3a
commit
29f7621d42
4 changed files with 20 additions and 43 deletions
15
flake.nix
15
flake.nix
|
|
@ -60,6 +60,7 @@
|
|||
inputs@{ flake-parts, import-tree, ... }:
|
||||
let
|
||||
aspectsModule = import-tree ./aspects;
|
||||
packagesModule = import-tree ./packages;
|
||||
in
|
||||
flake-parts.lib.mkFlake { inherit inputs; } {
|
||||
systems = [
|
||||
|
|
@ -69,12 +70,12 @@
|
|||
|
||||
imports = [
|
||||
flake-parts.flakeModules.modules
|
||||
] ++ aspectsModule.imports ++ [
|
||||
./deploy.nix
|
||||
./devShells.nix
|
||||
./overlays.nix
|
||||
./packages.nix
|
||||
./terranixConfigurations.nix
|
||||
];
|
||||
] ++ aspectsModule.imports
|
||||
++ packagesModule.imports
|
||||
++ [
|
||||
./deploy.nix
|
||||
./devShells.nix
|
||||
./terranixConfigurations.nix
|
||||
];
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue