os/switch.sh

5 lines
168 B
Bash
Raw Normal View History

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