feat: based just balance command

This commit is contained in:
Nick 2025-11-21 03:17:14 -06:00
parent 367b3f9338
commit 81f72f5d9d
3 changed files with 8 additions and 6 deletions

View file

@ -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";
} }

View file

@ -6,6 +6,7 @@ let
in in
{ {
name = "lamdagibson"; name = "lamdagibson";
short = "lamda";
ip = { ip = {
address0 = lamdagibsonIP; address0 = lamdagibsonIP;
}; };

View file

@ -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: