modules/clan: consistent logic for auto injecting nixpkgs, nix-darwin

We want to make them options this is a temporary fix
This commit is contained in:
Johannes Kirschbauer
2025-06-27 10:23:53 +02:00
parent 4c0cc45e9f
commit 8e5f03bd71

View File

@@ -27,10 +27,16 @@ in
default = { }; default = { };
type = types.submoduleWith { type = types.submoduleWith {
class = "clan"; class = "clan";
specialArgs = { specialArgs =
inherit self; # TODO: make these explizit options and deduplicate with lib.clan function
inherit (inputs) nixpkgs nix-darwin; let
}; nixpkgs = inputs.nixpkgs or clan-core.inputs.nixpkgs;
nix-darwin = inputs.nix-darwin or clan-core.inputs.nix-darwin;
in
{
inherit self;
inherit nixpkgs nix-darwin;
};
modules = [ modules = [
clan-core.modules.clan.default clan-core.modules.clan.default
]; ];