feat: added remote rebuild command for lamdagibson

This commit is contained in:
Nick 2025-10-21 19:42:36 -05:00
parent 45fb39b945
commit b91e543ca8

View file

@ -31,7 +31,11 @@ let
); );
in in
{ {
text = '' text =
let
lamdaIP = "192.168.50.131";
in
''
rebuildBoot: rebuildBoot:
nixos-rebuild boot --sudo --flake ~/projects/dotfiles#${hostname} --show-trace nixos-rebuild boot --sudo --flake ~/projects/dotfiles#${hostname} --show-trace
@ -41,6 +45,9 @@ in
rebuild-server: rebuild-server:
nixos-rebuild switch --flake ~/projects/dotfiles#${ceres.name} --target-host ${ceres.ip.address0} --sudo --ask-sudo-password nixos-rebuild switch --flake ~/projects/dotfiles#${ceres.name} --target-host ${ceres.ip.address0} --sudo --ask-sudo-password
rebuild-lamda:
nixos-rebuild switch --flake ~/projects/lamdagibson#lamdagibson --target-host denise@${lamdaIP} --sudo --ask-sudo-password
update: update:
nix flake update --flake ~/projects/dotfiles nix flake update --flake ~/projects/dotfiles
@ -54,7 +61,7 @@ in
ssh ${ceres.ip.address0} ssh ${ceres.ip.address0}
lamda: lamda:
ssh denise@192.168.50.131 ssh denise@${lamdaIP}
serverRemote: serverRemote:
ssh ${instances.web.remotehost.address0} ssh ${instances.web.remotehost.address0}