Fediversity/launch
Kiara Grouwstra 29664fef8c
get TF in prod to the same 'installable ... does not correspond to a Nix language value' for non-flakes
seemingly gets further when a similar command is tried from terminal.
as per https://github.com/NixOS/nix/issues/8752#issuecomment-1694714693,
this may have to do with aligning the current working directory.
2025-04-09 17:04:07 +02:00
..
.terraform get TF in prod to the same 'installable ... does not correspond to a Nix language value' for non-flakes 2025-04-09 17:04:07 +02:00
vm get TF in prod to the same 'installable ... does not correspond to a Nix language value' for non-flakes 2025-04-09 17:04:07 +02:00
.auto.tfvars.json allow accessing test vms from fedi201's machine ssh key, closes #286 2025-04-09 17:00:01 +02:00
.envrc tf 2025-04-09 17:00:20 +02:00
.gitignore properly pass repo dir for prod, be it with hard-coded TF init 2025-04-09 17:03:43 +02:00
.terraform.lock.hcl switch launch shell to root flake's nixpkgs, see #279 2025-04-09 17:00:20 +02:00
default.nix switch launch shell to root flake's nixpkgs, see #279 2025-04-09 17:00:20 +02:00
flake.lock update 2025-04-09 17:03:43 +02:00
flake.nix tf 2025-04-09 17:00:20 +02:00
garage.nix get TF in prod to the same 'installable ... does not correspond to a Nix language value' for non-flakes 2025-04-09 17:04:07 +02:00
main.tf use flake-sourced nixos-anywhere in tf, to reproduce modules for nix 2025-04-09 17:00:20 +02:00
mastodon.nix get TF in prod to the same 'installable ... does not correspond to a Nix language value' for non-flakes 2025-04-09 17:04:07 +02:00
module.auto.tfvars.json allow accessing test vms from fedi201's machine ssh key, closes #286 2025-04-09 17:00:01 +02:00
pass-ssh-key.sh tf 2025-04-09 17:00:20 +02:00
peertube.nix get TF in prod to the same 'installable ... does not correspond to a Nix language value' for non-flakes 2025-04-09 17:04:07 +02:00
pixelfed.nix get TF in prod to the same 'installable ... does not correspond to a Nix language value' for non-flakes 2025-04-09 17:04:07 +02:00
README.md document updating TF module 2025-04-09 17:03:43 +02:00
resource.nix tf 2025-04-09 17:00:20 +02:00
shared.nix get TF in prod to the same 'installable ... does not correspond to a Nix language value' for non-flakes 2025-04-09 17:04:07 +02:00
shell.nix tf 2025-04-09 17:00:20 +02:00
terraform.tfstate allow accessing test vms from fedi201's machine ssh key, closes #286 2025-04-09 17:00:01 +02:00
terraform.tfstate.backup allow accessing test vms from fedi201's machine ssh key, closes #286 2025-04-09 17:00:01 +02:00
tf-env.nix properly pass repo dir for prod, be it with hard-coded TF init 2025-04-09 17:03:43 +02:00
tf.nix tf 2025-04-09 17:00:20 +02:00

service deployment

usage

updating TF modules

$ npins update nixos-anywhere
$ cd launch/
$ echo "{\"nixos-anywhere\": $(nix-instantiate --eval --json -E '(import ../npins).nixos-anywhere.outPath')}" > .auto.tfvars.json

local development

$ nix-shell
$ rm -rf .terraform/
$ tofu init