infra: add flake module and crocus exports
This commit is contained in:
parent
925cf3140c
commit
5f6ba8e29d
4 changed files with 28 additions and 0 deletions
18
infra/flake-module.nix
Normal file
18
infra/flake-module.nix
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
{
|
||||
flake.infra =
|
||||
let
|
||||
tf_outputs = builtins.fromJSON (builtins.readFile ../infra/outputs.json);
|
||||
in
|
||||
{
|
||||
machines = {
|
||||
verbena = {
|
||||
ipv4 = tf_outputs.verbena_ipv4.value;
|
||||
ipv6 = tf_outputs.verbena_ipv6.value;
|
||||
gateway6 = tf_outputs.verbena_gateway6.value;
|
||||
};
|
||||
crocus = {
|
||||
ipv4 = tf_outputs.crocus_ipv4.value;
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue