Added run alias and some random bash scripts

This commit is contained in:
Random936
2025-09-30 19:48:54 -07:00
commit cd69ef9e7d
7 changed files with 63 additions and 0 deletions

15
nixos/update.sh Executable file
View File

@@ -0,0 +1,15 @@
update() {
cd ~/dotfiles
git pull
sudo nixos-rebuild switch --flake ~/dotfiles
home-manager switch --flake ~/dotfiles
}
# Nixos VMs
ssh media@media.randomctf.com -t "$(typeset -f update); update"
ssh logging@logging.randomctf.local -t "$(typeset -f update); update"
ssh mindforge@mindforge.randomctf.local -t "$(typeset -f update); update"
ssh sampledb@sampledb.randomctf.local -t "$(typeset -f update); update"
# Ubuntu VMs
ssh pbx@pbx.randomctf.local -t "sudo apt update -y && sudo apt upgrade -y"