1 2 3 4 5
#!/usr/bin/env bash set -euo pipefail sudo git config --global --add safe.directory /home/orbekk/projects/nixos-config sudo nixos-rebuild switch --flake "$(dirname $0)" "$@"