set -euo pipefail if [ ! -d "$(pwd)/.git" ]; then git init fi nix flake init --template "$FLAKE"#"$1" direnv allow