#!/usr/bin/env bash # rebuild-system.sh - Rebuild nixos configurations # # USAGE: # rebuild-system.sh # Rebuild system with current hostname # rebuild-system.sh hostname # Rebuild specific system if [ ! -z $1 ]; then export HOST=$1 else export HOST=$(hostname) fi nixos-rebuild switch --flake .#$HOST --sudo