os/switch.sh

4 lines
196 B
Bash
Executable file

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