mirror of
https://gitlab.com/upRootNutrition/dotfiles.git
synced 2025-12-07 13:32:15 -06:00
feat: based just balance command
This commit is contained in:
parent
367b3f9338
commit
81f72f5d9d
3 changed files with 8 additions and 6 deletions
|
|
@ -106,6 +106,7 @@ let
|
||||||
ip = genOptions stringType "address";
|
ip = genOptions stringType "address";
|
||||||
label = stringType;
|
label = stringType;
|
||||||
name = stringType;
|
name = stringType;
|
||||||
|
short = stringType;
|
||||||
sync = genOptions stringType "address";
|
sync = genOptions stringType "address";
|
||||||
wireguard = genOptions stringType "ip";
|
wireguard = genOptions stringType "ip";
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -6,6 +6,7 @@ let
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
name = "lamdagibson";
|
name = "lamdagibson";
|
||||||
|
short = "lamda";
|
||||||
ip = {
|
ip = {
|
||||||
address0 = lamdagibsonIP;
|
address0 = lamdagibsonIP;
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -26,12 +26,12 @@ let
|
||||||
ssh -p ${builtins.toString ssh} root@localhost
|
ssh -p ${builtins.toString ssh} root@localhost
|
||||||
'';
|
'';
|
||||||
balanceHosts = lib.concatStringsSep ", " [
|
balanceHosts = lib.concatStringsSep ", " [
|
||||||
''{name: "ceres", ssh: "${devices.ceres.ip.address0}"}''
|
''{name: "${devices.ceres.name}", ssh: "${devices.ceres.ip.address0}"}''
|
||||||
''{name: "eris", ssh: "${devices.eris.ip.address0}"}''
|
''{name: "${devices.eris.name}", ssh: "${devices.eris.ip.address0}"}''
|
||||||
''{name: "mars", ssh: "${devices.mars.ip.address0}"}''
|
''{name: "${devices.mars.name}", ssh: "${devices.mars.ip.address0}"}''
|
||||||
''{name: "deimos", ssh: "${devices.deimos.ip.address0}"}''
|
''{name: "${devices.deimos.name}", ssh: "${devices.deimos.ip.address0}"}''
|
||||||
''{name: "phobos", ssh: "${devices.phobos.ip.address0}"}''
|
''{name: "${devices.phobos.name}", ssh: "${devices.phobos.ip.address0}"}''
|
||||||
''{name: "lamda", ssh: "-o StrictHostKeyChecking=no denise@192.168.50.131"}''
|
''{name: "${devices.lamdagibson.short}", ssh: "-o StrictHostKeyChecking=no denise@${devices.lamdagibson.ip.address0}"}''
|
||||||
];
|
];
|
||||||
systemRecords =
|
systemRecords =
|
||||||
command:
|
command:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue