os/switch.sh
2023-05-21 19:15:04 +00:00

4 lines
168 B
Bash
Executable file

#!/usr/bin/env bash
SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )
nixos-rebuild switch --flake path://$SCRIPT_DIR# --use-remote-sudo