#!/usr/bin/env bash if [ -z "$1" ] then h="$(hostname -s)" else h="$1" fi nixos-rebuild --flake /etc/nixos#${h} switch