universe/shell/bud/b.bash
2023-03-30 12:29:48 -04:00

7 lines
190 B
Bash

#!/usr/bin/env bash
attr="$FLAKEROOT#$HOST"
if [ -x /run/wrappers/bin/sudo ]; then
export PATH=/run/wrappers/bin:$PATH
fi
nixos-rebuild --flake "$attr" --use-remote-sudo "${@:-switch}"