1
0
Fork 0

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

This commit is contained in:
kiara Grouwstra 2025-04-01 13:31:59 +02:00
parent ea8c61a712
commit 94420f112f
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}
{
nixos.module.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;
};