Skip to content

Commit

Permalink
Fix deploy script using remote sudo flag
Browse files Browse the repository at this point in the history
  • Loading branch information
leotaku committed Jun 12, 2022
1 parent f7cac1a commit 654e796
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions files/deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,11 @@ for machine in "${@}"; do

host="nixos-${machine}.local"
if [ "$host" == "$(hostname).local" ]; then
sudo nixos-rebuild "$action" \
--flake .#"$machine" \
--no-build-nix \
--use-substitutes
nixos-rebuild "$action" \
--flake .#"$machine" \
--no-build-nix \
--use-substitutes \
--use-remote-sudo
else
nixos-rebuild "$action" \
--flake .#"$machine" \
Expand Down

0 comments on commit 654e796

Please sign in to comment.