dotfiles/scripts/upgrade-nix
2026-01-28 16:03:50 -06:00

11 lines
262 B
Bash
Executable file

#!/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