nixfiles/scripts/deploy/raspberry.sh

9 lines
231 B
Bash
Raw Normal View History

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