forked from Fediversity/Fediversity
allow accessing test vms from fedi201's machine ssh key, closes #286
This commit is contained in:
parent
62ead0d369
commit
0b7b850265
1 changed files with 20 additions and 4 deletions
|
@ -22,10 +22,26 @@ let
|
||||||
{ vmName, isTestVm }:
|
{ vmName, isTestVm }:
|
||||||
{
|
{
|
||||||
_module.args = { inherit inputs; };
|
_module.args = { inherit inputs; };
|
||||||
imports = [
|
imports =
|
||||||
./common/resource.nix
|
[
|
||||||
(if isTestVm then ./test-machines + "/${vmName}" else ./machines + "/${vmName}")
|
./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;
|
fediversityVm.name = vmName;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue