#!/bin/sh currentdir=$(pwd) hostname=$(hostname) if [[ $hostname == kaladin ]]; then cd ~/.config/dotfiles else cd ~/.dotfiles fi nixos-rebuild --use-remote-sudo switch --show-trace --verbose --impure --flake .# cd $currentdir