Regenerated
This commit is contained in:
+10
-20
@@ -26,36 +26,26 @@
|
||||
};
|
||||
|
||||
outputs = { self, nixpkgs, home-manager, flake-parts, import-tree, stylix, hyprland, zen-browser, ... }:
|
||||
flake-parts.lib.eachDefaultSystem (system:
|
||||
let
|
||||
systems = ["x86_64-linux"];
|
||||
in
|
||||
lib.flattenTree (map (system:
|
||||
let
|
||||
pkgs = import nixpkgs { inherit system; };
|
||||
|
||||
# Define the flake root for all modules
|
||||
flakeRoot = self;
|
||||
|
||||
hmModules = home-manager.lib.hmModules;
|
||||
in rec {
|
||||
|
||||
# NixOS system configurations for each host
|
||||
in {
|
||||
nixosConfigurations = {
|
||||
traveldroid = flake-parts.lib.mkFlakeModule {
|
||||
inherit pkgs;
|
||||
modules = [
|
||||
./hosts/traveldroid.nix
|
||||
];
|
||||
|
||||
# Pass flakeRoot into modules so they can reference it
|
||||
extraArgs = {
|
||||
inherit flakeRoot;
|
||||
};
|
||||
modules = [ ./hosts/traveldroid.nix ];
|
||||
extraArgs = { inherit flakeRoot; };
|
||||
};
|
||||
};
|
||||
|
||||
# Home Manager modules can be aggregated here if needed
|
||||
homeManagerConfigurations = {
|
||||
traveldroid = hmModules.makeModuleSet {
|
||||
inherit pkgs flakeRoot;
|
||||
};
|
||||
traveldroid = hmModules.makeModuleSet { inherit pkgs flakeRoot; };
|
||||
};
|
||||
});
|
||||
}
|
||||
) systems);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user