12 lines
540 B
Bash
Executable file
12 lines
540 B
Bash
Executable file
#!/usr/bin/env bash
|
|
|
|
if [ "$1" = "mira" ]; then
|
|
nixos-rebuild switch --use-remote-sudo --flake `pwd`#mira
|
|
elif [ "$1" = "framework" ]; then
|
|
NIX_SSHOPTS="-t" nixos-rebuild switch --target-host framework --use-remote-sudo --flake `pwd`#framework
|
|
elif [ "$1" = "knazarovcom" ]; then
|
|
nix flake lock --update-input knazarovcom
|
|
nixos-rebuild switch --target-host knazarov.com --use-remote-sudo --flake `pwd`#knazarovcom
|
|
elif [ "$1" = "videos" ]; then
|
|
nixos-rebuild switch --target-host 107.189.7.30 --use-remote-sudo --flake `pwd`#videos
|
|
fi
|