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,40 +31,47 @@ let
);
in
{
text = ''
rebuildBoot:
nixos-rebuild boot --sudo --flake ~/projects/dotfiles#${hostname} --show-trace
text =
let
lamdaIP = "192.168.50.131";
in
''
rebuildBoot:
nixos-rebuild boot --sudo --flake ~/projects/dotfiles#${hostname} --show-trace
rebuild:
nixos-rebuild switch --sudo --flake ~/projects/dotfiles#${hostname} --show-trace
rebuild:
nixos-rebuild switch --sudo --flake ~/projects/dotfiles#${hostname} --show-trace
rebuild-server:
nixos-rebuild switch --flake ~/projects/dotfiles#${ceres.name} --target-host ${ceres.ip.address0} --sudo --ask-sudo-password
rebuild-server:
nixos-rebuild switch --flake ~/projects/dotfiles#${ceres.name} --target-host ${ceres.ip.address0} --sudo --ask-sudo-password
update:
nix flake update --flake ~/projects/dotfiles
rebuild-lamda:
nixos-rebuild switch --flake ~/projects/lamdagibson#lamdagibson --target-host denise@${lamdaIP} --sudo --ask-sudo-password
remove-redundant:
ls **/*.hs | each { |file| hlint --refactor --refactor-options="--inplace" $file.name }
update:
nix flake update --flake ~/projects/dotfiles
remove-imports:
ls **/*.hs | each { |file| ormolu --mode inplace $file.name }
remove-redundant:
ls **/*.hs | each { |file| hlint --refactor --refactor-options="--inplace" $file.name }
server:
ssh ${ceres.ip.address0}
remove-imports:
ls **/*.hs | each { |file| ormolu --mode inplace $file.name }
lamda:
ssh denise@192.168.50.131
server:
ssh ${ceres.ip.address0}
serverRemote:
ssh ${instances.web.remotehost.address0}
lamda:
ssh denise@${lamdaIP}
${deviceLogic.name}:
ssh ${deviceLogic.ip.address0}
serverRemote:
ssh ${instances.web.remotehost.address0}
vpnoff:
sudo systemctl stop wg-quick-Proton-*.service
${deviceLogic.name}:
ssh ${deviceLogic.ip.address0}
${vpnCommands}
'';
vpnoff:
sudo systemctl stop wg-quick-Proton-*.service
${vpnCommands}
'';
}