forked from fediversity/fediversity
Compare commits
No commits in common. "428b1d4e3a8955f0c93ec2c49b40c88db517b177" and "d26b3502abaf71584c6852c449e71576df963ceb" have entirely different histories.
428b1d4e3a
...
d26b3502ab
5 changed files with 13 additions and 5 deletions
2
launch/.gitignore
vendored
2
launch/.gitignore
vendored
|
|
@ -1,7 +1,5 @@
|
||||||
# generated
|
|
||||||
.auto.tfvars.json
|
.auto.tfvars.json
|
||||||
.npins.json
|
.npins.json
|
||||||
.terraform/
|
.terraform/
|
||||||
.terraform.lock.hcl
|
|
||||||
.terraform.tfstate.lock.info
|
.terraform.tfstate.lock.info
|
||||||
terraform.tfstate*
|
terraform.tfstate*
|
||||||
|
|
|
||||||
9
launch/.terraform.lock.hcl
generated
Normal file
9
launch/.terraform.lock.hcl
generated
Normal file
|
|
@ -0,0 +1,9 @@
|
||||||
|
# This file is maintained automatically by "tofu init".
|
||||||
|
# Manual edits may be lost in future updates.
|
||||||
|
|
||||||
|
provider "registry.opentofu.org/hashicorp/external" {
|
||||||
|
version = "2.3.4"
|
||||||
|
hashes = [
|
||||||
|
"h1:HfVaWMC7Tz+tRfoWZtGCX2MATcgX3HsexoirWdi/voo=",
|
||||||
|
]
|
||||||
|
}
|
||||||
|
|
@ -1,4 +1,3 @@
|
||||||
# TODO: could (part of) this be generated somehow?
|
|
||||||
{
|
{
|
||||||
lib,
|
lib,
|
||||||
...
|
...
|
||||||
|
|
|
||||||
|
|
@ -10,7 +10,7 @@ let
|
||||||
inherit (lib.strings) removeSuffix;
|
inherit (lib.strings) removeSuffix;
|
||||||
|
|
||||||
secretsPrefix = ../secrets;
|
secretsPrefix = ../secrets;
|
||||||
secrets = import "${secretsPrefix}/secrets.nix";
|
secrets = import (secretsPrefix + "/secrets.nix");
|
||||||
keys = import ../keys;
|
keys = import ../keys;
|
||||||
|
|
||||||
in
|
in
|
||||||
|
|
@ -35,7 +35,8 @@ in
|
||||||
}
|
}
|
||||||
) secrets;
|
) secrets;
|
||||||
|
|
||||||
## FIXME: switch root authentication to users with password-less sudo, see #24
|
## FIXME: Remove direct root authentication once the NixOps4 NixOS provider
|
||||||
|
## supports users with password-less sudo.
|
||||||
users.users.root.openssh.authorizedKeys.keys = attrValues keys.contributors ++ [
|
users.users.root.openssh.authorizedKeys.keys = attrValues keys.contributors ++ [
|
||||||
# allow our panel vm access to the test machines
|
# allow our panel vm access to the test machines
|
||||||
keys.panel
|
keys.panel
|
||||||
|
|
|
||||||
|
|
@ -19,6 +19,7 @@ pkgs.stdenv.mkDerivation {
|
||||||
runHook preBuild
|
runHook preBuild
|
||||||
pushd launch/
|
pushd launch/
|
||||||
echo '${lib.strings.toJSON sources}' > .npins.json
|
echo '${lib.strings.toJSON sources}' > .npins.json
|
||||||
|
rm .terraform.lock.hcl
|
||||||
tofu init -input=false
|
tofu init -input=false
|
||||||
popd
|
popd
|
||||||
runHook postBuild
|
runHook postBuild
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue