mirror of
https://gitlab.com/upRootNutrition/dotfiles.git
synced 2025-12-06 21:17:14 -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,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}
|
||||
'';
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue