diff --git a/nixos/modules/update-deployment b/nixos/modules/update-deployment
index 82bbc2129e83743b92f599c9517d49021bd7d0e3..792609fda30d61311e736803035073740f1457b9 100755
--- a/nixos/modules/update-deployment
+++ b/nixos/modules/update-deployment
@@ -38,6 +38,6 @@ fi
 
 echo "$(date --iso-8601=seconds) $(git -C "${CHECKOUT}" rev-parse HEAD)" >> ${HOME}/updates.txt
 
-nix-shell "${CHECKOUT}"/shell.nix --command "
+nix-shell "${CHECKOUT}"/shell.nix --run "
   morph deploy \"${CHECKOUT}\"/morph/grid/\"${GRIDNAME}\"/grid.nix switch --on \"$(hostname)\"
 "