Compare commits

..

No commits in common. "428b1d4e3a8955f0c93ec2c49b40c88db517b177" and "d26b3502abaf71584c6852c449e71576df963ceb" have entirely different histories.

5 changed files with 13 additions and 5 deletions

2
launch/.gitignore vendored
View file

@ -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
View 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=",
]
}

View file

@ -1,4 +1,3 @@
# TODO: could (part of) this be generated somehow?
{ {
lib, lib,
... ...

View file

@ -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

View file

@ -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