modules.clan.default: move specialArgs into common place

This commit is contained in:
Johannes Kirschbauer
2025-06-26 17:32:51 +02:00
parent e195a77476
commit 50f6b4a095
6 changed files with 5 additions and 17 deletions

View File

@@ -4,6 +4,8 @@
_module.args = {
inherit clan-core;
inherit (clan-core) clanLib;
# TODO: This should be set via an option otherwise it is not possible to override
inherit (clan-core.inputs) nixpkgs nix-darwin;
};
imports = [
./module.nix

View File

@@ -2,10 +2,8 @@
## This is only a wrapper such that 'clan' can be called as a function.
{
lib,
clanLib,
clan-core,
nixpkgs,
nix-darwin,
...
}:
rec {
buildClan =
@@ -18,12 +16,8 @@ rec {
}@m:
lib.evalModules {
specialArgs = {
inherit (clan-core) clanLib;
inherit
self
clan-core
nixpkgs
nix-darwin
;
};
modules = [