mirror of
https://github.com/gensokyo-zone/infrastructure.git
synced 2026-02-09 12:29:19 -08:00
Meta cursed hack
This commit is contained in:
parent
a5670724da
commit
8532a463b2
3 changed files with 7 additions and 6 deletions
|
|
@ -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
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
{ meta, config, profiles, ... }: with lib; {
|
{ lib, config, profiles, ... }: with lib; {
|
||||||
config = {
|
config = {
|
||||||
deploy.targets.personal = {
|
deploy.targets.personal = {
|
||||||
tf = {
|
tf = {
|
||||||
|
|
|
||||||
|
|
@ -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;
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue