10 lines
345 B
Bash
Executable file
10 lines
345 B
Bash
Executable file
#!/usr/bin/env bash
|
|
|
|
SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )
|
|
cd $SCRIPT_DIR
|
|
cd $(git rev-parse --show-toplevel)
|
|
|
|
DEFAULT_HOST="root@raspberry.servers.genderfucked.monster"
|
|
TARGET_HOST=${HOST:-${DEFAULT_HOST}}
|
|
nixos-rebuild switch --flake .#raspberry --target-host "$TARGET_HOST" --use-substitutes -s "$@"
|