mirror of
https://gitlab.com/upRootNutrition/dotfiles.git
synced 2025-12-07 05:27:13 -06:00
test: microVM test
This commit is contained in:
parent
bd1d74997d
commit
f15baf7ccb
21 changed files with 405 additions and 529 deletions
|
|
@ -16,20 +16,6 @@ let
|
|||
hostname = config.networking.hostName;
|
||||
deviceLogic = if hostname == mars.name then deimos else mars;
|
||||
|
||||
vpnServers = [
|
||||
"CA363"
|
||||
"CA220"
|
||||
"CA358"
|
||||
"CA627"
|
||||
];
|
||||
|
||||
vpnCommands = lib.concatStrings (
|
||||
lib.imap0 (i: server: ''
|
||||
vpn${toString i}:
|
||||
sudo systemctl start wg-quick-Proton-${server}.service
|
||||
|
||||
'') vpnServers
|
||||
);
|
||||
in
|
||||
{
|
||||
text =
|
||||
|
|
@ -73,12 +59,12 @@ in
|
|||
serverRemote:
|
||||
ssh ${instances.web.remotehost.address0}
|
||||
|
||||
forgejo:
|
||||
ssh root@${instances.forgejo.interface.ip}
|
||||
|
||||
${deviceLogic.name}:
|
||||
ssh ${deviceLogic.ip.address0}
|
||||
|
||||
vpnoff:
|
||||
sudo systemctl stop wg-quick-Proton-*.service
|
||||
|
||||
${vpnCommands}
|
||||
'';
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue