mirror of
https://github.com/gensokyo-zone/infrastructure.git
synced 2026-02-09 12:29:19 -08:00
multiple in-housed modules and enabled gc-roots, ...
This commit is contained in:
parent
8e7d43cbab
commit
7b079e36d8
13 changed files with 516 additions and 34 deletions
|
|
@ -23,6 +23,7 @@ let
|
|||
tfModule
|
||||
"${toString sources.tf-nix}/modules"
|
||||
];
|
||||
shorthandOnlyDefinesConfig = true;
|
||||
};
|
||||
in
|
||||
{
|
||||
|
|
@ -68,10 +69,14 @@ in
|
|||
};
|
||||
};
|
||||
config.tf = mkMerge (singleton
|
||||
{
|
||||
({ ... }: {
|
||||
imports = [
|
||||
../../targets/common.nix
|
||||
../../tf-common.nix
|
||||
];
|
||||
deploy.gcroot = {
|
||||
name = mkDefault "kw-${config.name}";
|
||||
user = mkIf (builtins.getEnv "HOME_USER" != "") (mkDefault (builtins.getEnv "HOME_USER"));
|
||||
};
|
||||
deps = {
|
||||
select.allProviders = true;
|
||||
enable = true;
|
||||
|
|
@ -97,7 +102,7 @@ in
|
|||
};
|
||||
};
|
||||
continue.envVar = "TF_NIX_CONTINUE_${replaceStrings [ "-" ] [ "_" ] config.name}";
|
||||
} ++ map (nodeName: mapAttrs (_: mkMerge) meta.network.nodes.${nodeName}.deploy.tf.out.set) config.nodeNames);
|
||||
}) ++ map (nodeName: mapAttrs (_: mkMerge) meta.network.nodes.${nodeName}.deploy.tf.out.set) config.nodeNames);
|
||||
});
|
||||
in
|
||||
mkOption {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue