51 lines
1.4 KiB
Nix
51 lines
1.4 KiB
Nix
{
|
|
description = "Droidnix: A dendritic NixOS + Home Manager configuration";
|
|
|
|
inputs = {
|
|
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
|
|
|
|
home-manager = {
|
|
url = "github:nix-community/home-manager";
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
};
|
|
|
|
flake-parts.url = "github:hercules-ci/flake-parts";
|
|
import-tree.url = "github:vic/import-tree";
|
|
|
|
stylix = {
|
|
url = "github:nix-community/stylix";
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
};
|
|
|
|
hyprland.url = "github:hyprwm/Hyprland";
|
|
};
|
|
|
|
outputs = inputs@{ flake-parts, nixpkgs, import-tree, ... }:
|
|
flake-parts.lib.mkFlake { inherit inputs; } {
|
|
systems = [ "x86_64-linux" ];
|
|
|
|
flake = {
|
|
nixosConfigurations.traveldroid = nixpkgs.lib.nixosSystem {
|
|
system = "x86_64-linux";
|
|
|
|
specialArgs = {
|
|
inherit inputs;
|
|
flakeRoot = ./.; # <-- Pass the absolute path of the flake root
|
|
};
|
|
|
|
modules = [
|
|
./generated/hosts/traveldroid/boot.nix
|
|
./generated/hosts/traveldroid/hardware-configuration.nix
|
|
|
|
# Import all dendritic modules (users, desktops, system modules)
|
|
(import-tree ./generated/modules)
|
|
|
|
# Extra modules
|
|
inputs.stylix.nixosModules.default
|
|
inputs.home-manager.nixosModules.home-manager
|
|
];
|
|
};
|
|
};
|
|
};
|
|
}
|