update flake.nix to use import-tree
Use import-tree to automatically discover and import all aspects. Removes homeConfigurations.nix, nixosConfigurations.nix, and nixosModules.nix from imports as they're now in aspects/. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
parent
a9f84629e3
commit
3200927cb5
1 changed files with 18 additions and 17 deletions
35
flake.nix
35
flake.nix
|
|
@ -3,6 +3,7 @@
|
||||||
|
|
||||||
inputs = {
|
inputs = {
|
||||||
flake-parts.url = "github:hercules-ci/flake-parts";
|
flake-parts.url = "github:hercules-ci/flake-parts";
|
||||||
|
import-tree.url = "github:vic/import-tree";
|
||||||
|
|
||||||
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
|
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
|
||||||
nixpkgs-stable.url = "github:nixos/nixpkgs/nixos-25.11";
|
nixpkgs-stable.url = "github:nixos/nixpkgs/nixos-25.11";
|
||||||
|
|
@ -56,22 +57,22 @@
|
||||||
};
|
};
|
||||||
|
|
||||||
outputs =
|
outputs =
|
||||||
inputs@{ flake-parts, ... }:
|
inputs@{ flake-parts, import-tree, ... }:
|
||||||
flake-parts.lib.mkFlake { inherit inputs; } {
|
flake-parts.lib.mkFlake { inherit inputs; } (
|
||||||
systems = [
|
import-tree ./aspects
|
||||||
"x86_64-linux"
|
// {
|
||||||
"aarch64-linux"
|
systems = [
|
||||||
];
|
"x86_64-linux"
|
||||||
|
"aarch64-linux"
|
||||||
|
];
|
||||||
|
|
||||||
imports = [
|
imports = [
|
||||||
./deploy.nix
|
./deploy.nix
|
||||||
./devShells.nix
|
./devShells.nix
|
||||||
./homeConfigurations.nix
|
./overlays.nix
|
||||||
./nixosConfigurations.nix
|
./packages.nix
|
||||||
./nixosModules.nix
|
./terranixConfigurations.nix
|
||||||
./overlays.nix
|
];
|
||||||
./packages.nix
|
}
|
||||||
./terranixConfigurations.nix
|
);
|
||||||
];
|
|
||||||
};
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue