mirror of
https://gitlab.com/upRootNutrition/dotfiles.git
synced 2025-12-07 05:27:13 -06:00
feat: added remote rebuild command for lamdagibson
This commit is contained in:
parent
45fb39b945
commit
b91e543ca8
1 changed files with 32 additions and 25 deletions
|
|
@ -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}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue