os/switch.sh

5 lines
196 B
Bash
Raw Permalink 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 )
2023-05-25 19:44:28 +02:00
NIXPKGS_ALLOW_UNFREE=1 nixos-rebuild switch --flake path://$SCRIPT_DIR# --use-remote-sudo "$@"