Meta cursed hack

This commit is contained in:
kat witch 2021-08-09 03:17:39 +01:00
parent a5670724da
commit 8532a463b2
No known key found for this signature in database
GPG key ID: 1B477797DCA5EC72
3 changed files with 7 additions and 6 deletions

View file

@ -26,7 +26,7 @@ let
We also pass through pkgs to meta this way. We also pass through pkgs to meta this way.
*/ */
metaConfig = import ./meta-base.nix { metaConfig = import ./meta-base.nix {
inherit pkgs lib; inherit pkgs lib depot;
}; };
# This is where the meta config is evaluated. # This is where the meta config is evaluated.
@ -39,6 +39,7 @@ let
specialArgs = { specialArgs = {
inherit sources; inherit sources;
meta = self;
} // depot; } // depot;
}; };
@ -58,4 +59,5 @@ let
* do not use common, it is tf-nix specific config ingested at line 66 of config/modules/meta/deploy.nix for every target. * do not use common, it is tf-nix specific config ingested at line 66 of config/modules/meta/deploy.nix for every target.
* services -> the specialArg generated from services/ * services -> the specialArg generated from services/
*/ */
in config // { inherit pkgs lib sourceCache sources; } // depot self = config // { inherit pkgs lib sourceCache sources; } // depot;
in self

View file

@ -1,4 +1,4 @@
{ meta, config, profiles, ... }: with lib; { { lib, config, profiles, ... }: with lib; {
config = { config = {
deploy.targets.personal = { deploy.targets.personal = {
tf = { tf = {

View file

@ -1,4 +1,4 @@
{ pkgs, sources, lib, config, ... }: { pkgs, sources, lib, meta, config, ... }:
/* /*
This module: This module:
@ -59,8 +59,7 @@ with lib;
]; ];
specialArgs = { specialArgs = {
inherit (config.network) nodes; inherit (config.network) nodes;
inherit sources; inherit sources meta;
meta = config;
}; };
}; };
}; };