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.
|
||||
*/
|
||||
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
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
{ meta, config, profiles, ... }: with lib; {
|
||||
{ lib, config, profiles, ... }: with lib; {
|
||||
config = {
|
||||
deploy.targets.personal = {
|
||||
tf = {
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue