allow accessing test vms from fedi201's machine ssh key, closes #286

This commit is contained in:
Kiara Grouwstra 2025-04-01 13:31:59 +02:00
parent 62ead0d369
commit 0b7b850265
Signed by: kiara
SSH key fingerprint: SHA256:COspvLoLJ5WC5rFb9ZDe5urVCkK4LJZOsjfF4duRJFU

View file

@ -22,10 +22,26 @@ let
{ vmName, isTestVm }:
{
_module.args = { inherit inputs; };
imports = [
./common/resource.nix
(if isTestVm then ./test-machines + "/${vmName}" else ./machines + "/${vmName}")
];
imports =
[
./common/resource.nix
]
++ (
if isTestVm then
[
./test-machines/${vmName}
{
users.users.root.openssh.authorizedKeys.keys = [
# allow our panel vm access to the test machines
(import ../../keys).systems.fedi201
];
}
]
else
[
./machines/${vmName}
]
);
fediversityVm.name = vmName;
};