#!/bin/sh

currentdir=$(pwd)
hostname=$(hostname)
if [[ $hostname == kaladin ]]; then
    cd ~/.config/dotfiles
else 
    cd ~/.dotfiles
fi
nixos-rebuild --sudo switch --show-trace --log-format bar-with-logs --print-build-logs --impure --flake .#
cd $currentdir
