{"id":50772340,"url":"https://github.com/ickc/provision","last_synced_at":"2026-06-11T20:02:13.941Z","repository":{"id":362777563,"uuid":"1225632758","full_name":"ickc/provision","owner":"ickc","description":null,"archived":false,"fork":false,"pushed_at":"2026-06-05T22:02:40.000Z","size":159,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-06-05T22:20:21.731Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ickc.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-04-30T13:32:16.000Z","updated_at":"2026-06-05T22:02:44.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/ickc/provision","commit_stats":null,"previous_names":["ickc/provision"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/ickc/provision","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ickc%2Fprovision","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ickc%2Fprovision/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ickc%2Fprovision/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ickc%2Fprovision/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ickc","download_url":"https://codeload.github.com/ickc/provision/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ickc%2Fprovision/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34215254,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-11T02:00:06.485Z","response_time":57,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2026-06-11T20:02:13.379Z","updated_at":"2026-06-11T20:02:13.931Z","avatar_url":"https://github.com/ickc.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# provision\n\nOne-shot personal UNIX environment bootstrap. Composes\n[envoy](https://github.com/ickc/envoy) installers, dotfiles, data repos, and\nSSH configuration into a single script that turns a fresh account into a\nfully configured environment.\n\n## Quick start\n\n### Prerequisites\n\nOnly `curl`, `git`, and `bash` are required on the target machine.\n**No Python required** — pixi is a static binary installed via `curl | sh`.\n\n### Personal bootstrap (SSH, private repos)\n\nUses SSH throughout; clones `ssh-dir`, generates a machine SSH key, and\nregisters it with GitHub. Requires SSH agent forwarding active on the target.\n\n```bash\n# 1. Derive platform path (mirrors env.sh convention) and install pixi\nread -r _os _arch \u003c\u003c\u003c \"$(uname -sm)\"\nexport PIXI_HOME=\"${HOME}/.local/opt/${_os}-${_arch}/pixi\"\nPIXI_NO_PATH_UPDATE=1 curl -fsSL https://pixi.sh/install.sh | sh\n\n# 2. Clone this repo\nmkdir -p ~/git/source\ngit clone git@github.com:ickc/provision.git ~/git/source/provision\n\n# 3. Run bootstrap\n\"${PIXI_HOME}/bin/pixi\" run --manifest-path ~/git/source/provision bootstrap\n```\n\n### Public bootstrap (HTTPS, no private repos)\n\nUses HTTPS throughout; skips `ssh-dir` and SSH key generation. Suitable for\nshared/HPC machines where you only need tools + dotfiles.\n\n```bash\n# 1. Derive platform path and install pixi\nread -r _os _arch \u003c\u003c\u003c \"$(uname -sm)\"\nexport PIXI_HOME=\"${HOME}/.local/opt/${_os}-${_arch}/pixi\"\nPIXI_NO_PATH_UPDATE=1 curl -fsSL https://pixi.sh/install.sh | sh\n\n# 2. Clone this repo\nmkdir -p ~/git/source\ngit clone https://github.com/ickc/provision.git ~/git/source/provision\n\n# 3. Run bootstrap\n\"${PIXI_HOME}/bin/pixi\" run --manifest-path ~/git/source/provision bootstrap-public\n```\n\n### Why clone first?\n\n`pixi run bootstrap` activates the project's conda environment (Python ≥ 3.10)\nbefore running the script. This guarantees the installer scripts have a\nsupported Python regardless of what the host provides — important on systems\nwith Python 3.6 or no Python at all. The clone is cheap (shallow is fine:\n`git clone --depth 1 …`).\n\n`PIXI_NO_PATH_UPDATE=1` keeps the pixi installer from modifying shell RC files;\n`PIXI_HOME` is set to the platform-specific path that `env.sh` expects\n(`~/.local/opt/\u003cOS\u003e-\u003carch\u003e/pixi`) rather than the default `~/.pixi`.\n\n## What the bootstrap does\n\n| Stage | Description |\n|-------|-------------|\n| **0** | Downloads `env.sh` from envoy to set `__OPT_ROOT`, `PIXI_HOME`, `XDG_DATA_HOME`; installs pixi (idempotent). |\n| **1** | Clones envoy → `$XDG_DATA_HOME/envoy`; runs `micromamba`, `mamba_env --name system`, `zim`, `code`, `chezmoi`, `sman` installers. |\n| **2** | Applies dotfiles via chezmoi; clones sman-snippets and navi-cheatsheets. Personal path also clones ssh-dir → `~/.ssh`. |\n| **3** | *(Personal path only)* Generates machine SSH key (`ed25519`); runs `gh auth login` (interactive browser flow). |\n| **Final** | Generates shell completions for all installed tools. |\n\n## Submodules\n\n| Path | Repo | Purpose |\n|------|------|---------|\n| `submodule/envoy` | `ickc/envoy` | Python installers for the core toolchain |\n| `submodule/dotfiles` | `ickc/dotfiles` | chezmoi-managed shell + tool config |\n| `submodule/ssh-dir` | `ickc/ssh-dir` *(private)* | SSH config, known_hosts, authorized_keys |\n| `submodule/sman-snippets` | `ickc/sman-snippets` | sman snippet library |\n| `submodule/navi-cheatsheets` | `ickc/navi-cheatsheets` | navi cheatsheet data |\n\n## Development\n\n```bash\npixi run init      # initialize submodules after a fresh clone\npixi run update    # pull latest commits in all submodules\n```\n\nInstaller development lives in `submodule/envoy`; see its `CLAUDE.md` for\nconventions.\n\n## Testing\n\n`test/smoke.sh` asserts the environment a bootstrap is expected to produce —\ntools functional, `~/.config` a real directory, data repos cloned, completions\npresent, and (path 1) the SSH key with `600` perms. Run it after a bootstrap:\n\n```bash\npixi run test-bootstrap          # path 1 (personal)\npixi run test-bootstrap-public   # path 2 (public)\n```\n\nThe personal path's Stage 3 (`ssh-keygen`, `gh auth login`) is interactive. Pass\n`--no-identity` — implied automatically when `CI=true` — to generate the key with\nan empty passphrase and skip `gh auth login`, so the path runs unattended:\n\n```bash\nbash bootstrap.sh --no-identity \u0026\u0026 pixi run test-bootstrap\n```\n\nCI (`.github/workflows/test-bootstrap.yml`) runs the public path end-to-end on\nLinux x86_64/aarch64 and macOS arm64/x86_64: fresh install → smoke → a second run\nto prove idempotency.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fickc%2Fprovision","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fickc%2Fprovision","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fickc%2Fprovision/lists"}