nixfiles/scripts/deploy/raspberry.sh

9 lines
301 B
Bash
Raw Normal View History

2023-09-14 19:44:27 +01:00
#!/usr/bin/env bash
SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )
cd $SCRIPT_DIR
cd $(git rev-parse --show-toplevel)
2023-09-18 03:56:58 +01:00
[ -n "$NO_BUILD_PIPED_BACKEND" ] && ./scripts/buildPipedBackendAArch64.nix
nixos-rebuild switch --flake .#raspberry --target-host raspberry -s "$@"