default:
    @just --list

# ── Antigravity ────────────────────────────────────────────

# Run antigravity (FHS-wrapped) from the attic cache
antigravity-run:
    nix run \
        --extra-substituters "https://nix-cache-custom.oleks.space/attic-infra-cache-k3s-1" \
        --extra-trusted-public-keys "attic-infra-cache-k3s-1:qYSNK3DmttQXCFqn1t50qoWGtQNPRFWq9mgQjD05DeU=" \
        git+https://git.oleks.space/oleks/flake-hub#google-antigravity

# Run antigravity (non-FHS variant) from the attic cache
antigravity-run-no-fhs:
    nix run \
        --extra-substituters "https://nix-cache-custom.oleks.space/attic-infra-cache-k3s-1" \
        --extra-trusted-public-keys "attic-infra-cache-k3s-1:qYSNK3DmttQXCFqn1t50qoWGtQNPRFWq9mgQjD05DeU=" \
        git+https://git.oleks.space/oleks/flake-hub#google-antigravity-no-fhs

# Build antigravity (FHS-wrapped)
antigravity-build:
    nix build .#google-antigravity --print-build-logs

# Build antigravity (non-FHS variant)
antigravity-build-no-fhs:
    nix build .#google-antigravity-no-fhs --print-build-logs

# Pull the latest jacopone/antigravity-nix pin
antigravity-update:
    nix flake update antigravity-nix

# ── gitea-local-fork ───────────────────────────────────────
# Builds Oleks's local gitea fork (/home/oleks/projects/gitea, branch oleks/main).

# Build the gitea fork (compiles Go 1.26.3 first time; ~5-8 min cold)
gitea-build:
    nix build .#gitea-local-fork --print-build-logs

# Refresh gitea-local-fork: bump rev/hashes/version, retag the gitea fork, push both repos
gitea-update:
    nix run nixpkgs#nix-update -- \
        --flake gitea-local-fork \
        --use-update-script

# Run gitea from the attic-cached build (no local recompile)
gitea-run:
    nix run \
        --extra-substituters "https://nix-cache-custom.oleks.space/attic-infra-cache-k3s-1" \
        --extra-trusted-public-keys "attic-infra-cache-k3s-1:qYSNK3DmttQXCFqn1t50qoWGtQNPRFWq9mgQjD05DeU=" \
        git+https://git.oleks.space/oleks/flake-hub#gitea-local-fork -- --help
