nixfiles/scripts/deploy/raspberry.sh
2023-09-18 03:56:58 +01:00

9 lines
301 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)
[ -n "$NO_BUILD_PIPED_BACKEND" ] && ./scripts/buildPipedBackendAArch64.nix
nixos-rebuild switch --flake .#raspberry --target-host raspberry -s "$@"