#!/usr/bin/env bash if [[ "$USER" != "root" ]]; then exec sudo -- $0 $@ fi path=/etc/nixos git -C $path pull && \ git -C $path submodule update && \ nixos-rebuild $@