Regenerated
This commit is contained in:
+33
-26
@@ -1,5 +1,4 @@
|
||||
{
|
||||
description = "Droidnix: A dendritic NixOS + Home Manager configuration";
|
||||
description = "Droidnix: A dendritic NixOS + Home Manager configuration";
|
||||
|
||||
inputs = {
|
||||
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
|
||||
@@ -16,38 +15,46 @@
|
||||
url = "github:nix-community/stylix";
|
||||
inputs.nixpkgs.follows = "nixpkgs";
|
||||
};
|
||||
|
||||
zen-browser = {
|
||||
url = "github:youwen5/zen-browser-flake";
|
||||
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" ];
|
||||
outputs = { self, nixpkgs, home-manager, flake-parts, import-tree, stylix, hyprland, zen-browser, ... }:
|
||||
flake-parts.lib.eachDefaultSystem (system:
|
||||
let
|
||||
pkgs = import nixpkgs { inherit system; };
|
||||
|
||||
flake = {
|
||||
nixosConfigurations.traveldroid = nixpkgs.lib.nixosSystem {
|
||||
system = "x86_64-linux";
|
||||
# Define the flake root for all modules
|
||||
flakeRoot = self;
|
||||
|
||||
specialArgs = {
|
||||
inherit inputs;
|
||||
flakeRoot = ./.; # <-- Pass the absolute path of the flake root
|
||||
hmModules = home-manager.lib.hmModules;
|
||||
in rec {
|
||||
|
||||
# NixOS system configurations for each host
|
||||
nixosConfigurations = {
|
||||
traveldroid = flake-parts.lib.mkFlakeModule {
|
||||
inherit pkgs;
|
||||
modules = [
|
||||
./generated/hosts/traveldroid/traveldroid.nix
|
||||
];
|
||||
|
||||
# Pass flakeRoot into modules so they can reference it
|
||||
extraArgs = {
|
||||
inherit flakeRoot;
|
||||
};
|
||||
};
|
||||
|
||||
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
|
||||
];
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
# Home Manager modules can be aggregated here if needed
|
||||
homeManagerConfigurations = {
|
||||
traveldroid = hmModules.makeModuleSet {
|
||||
inherit pkgs flakeRoot;
|
||||
};
|
||||
};
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user