2023-07-30 16:18:49 +00:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
|
|
|
|
if [ "$1" = "mira" ]; then
|
2023-10-25 23:31:53 +00:00
|
|
|
nixos-rebuild switch --use-remote-sudo --flake `pwd`#mira
|
2023-07-30 16:18:49 +00:00
|
|
|
elif [ "$1" = "framework" ]; then
|
2023-10-25 23:31:53 +00:00
|
|
|
NIX_SSHOPTS="-t" nixos-rebuild switch --target-host framework --use-remote-sudo --flake `pwd`#framework
|
2023-07-30 16:18:49 +00:00
|
|
|
elif [ "$1" = "knazarovcom" ]; then
|
2024-11-02 22:05:34 +00:00
|
|
|
nix flake lock --update-input knazarovcom
|
2023-10-25 23:31:53 +00:00
|
|
|
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
|
2023-07-30 16:18:49 +00:00
|
|
|
fi
|