Fediversity/launch
2025-04-13 13:11:04 +02:00
..
.envrc tf 2025-04-09 17:00:20 +02:00
.gitignore special-args -> hermetic 2025-04-10 09:00:21 +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 nixos-anywhere -> terraform-nixos 2025-04-09 17:05:00 +02:00
garage.nix merge tf modules 2025-04-13 13:11:04 +02:00
main.tf merge tf modules 2025-04-13 13:11:04 +02:00
mastodon.nix special-args -> hermetic 2025-04-10 09:00:21 +02:00
module.auto.tfvars.json get terraform-nixos working deployed 2025-04-12 22:11:23 +02:00
pass-ssh-key.sh tf 2025-04-09 17:00:20 +02:00
peertube.nix special-args -> hermetic 2025-04-10 09:00:21 +02:00
pixelfed.nix special-args -> hermetic 2025-04-10 09:00:21 +02:00
README.md document dev process 2025-04-10 14:01:07 +02:00
resource.nix add ssh key to not need root user 2025-04-09 17:05:00 +02:00
shared.nix merge tf modules 2025-04-13 13:11:04 +02:00
shell.nix tf 2025-04-09 17:00:20 +02:00
tf-env.nix special-args -> hermetic 2025-04-10 09:00:21 +02:00
tf.nix tf 2025-04-09 17:00:20 +02:00

service deployment

usage

updating TF modules

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

local development

$ nix-shell
$ eval "$(ssh-agent -s)"
# set your ssh key, e.g.:
$ ssh_key="$(readlink -f ~/.ssh/id_ed25519)"
$ echo "{\"ssh_private_key_file\": \"${ssh_key}\", \"deploy_environment\": {\"SSH_AUTH_SOCK\": \"${SSH_AUTH_SOCK}\"}}" > .auto.tfvars.json
$ rm -rf .terraform/
$ tofu init