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.
*/
metaConfig = import ./meta-base.nix {
inherit pkgs lib;
inherit pkgs lib depot;
};
# This is where the meta config is evaluated.
@ -39,6 +39,7 @@ let
specialArgs = {
inherit sources;
meta = self;
} // 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.
* 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 = {
deploy.targets.personal = {
tf = {

View file

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