Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

om develop: Nix devShell that automates more and guides the user #316

Closed
10 of 11 tasks
Tracked by #204
srid opened this issue Oct 14, 2024 · 4 comments
Closed
10 of 11 tasks
Tracked by #204

om develop: Nix devShell that automates more and guides the user #316

srid opened this issue Oct 14, 2024 · 4 comments
Labels
enhancement New feature or request

Comments

@srid
Copy link
Member

srid commented Oct 14, 2024

Motivation

The user git clones some project. What to do next?

Mechanism

Generally speaking, 3 things need to happen:

  1. Setup the necessary Nix caches to avoid compiling locally
    • Notably, one might use a private Cachix cache. Suppose the read-only auth token is stored in the Git repo, we want to run both cachix authtoken ... and cachix use ...
  2. Run om health, which checks various things including that cachix cache are in use (we may need om health: check access to private caches #315), and instruct users to fix the problems accordingly (cf. om health: Use markdown for rendering suggestions and such #291)
  3. Show "next steps", which varies between projects, but typically involves running direnv allow (or nix develop) as first step, followed by VSCode setup. This can be Markdown we render in the terminal.

Questions

(3) can be part of om show, but the whole 1-2-3 step process may well require a new subcommand?

Roadmap

@srid srid added the enhancement New feature or request label Oct 14, 2024
@srid srid mentioned this issue Oct 14, 2024
9 tasks
@srid
Copy link
Member Author

srid commented Oct 14, 2024

This seems to be the better markdown renderer:

https://github.com/swsnr/mdcat

Takes a bunch of setting up, however:

image

Result:

image

Surprisingly, those links are clickable by default - hover over (they get underlined) and click. Not even need to press modifier keys like Cmd.

image

EDIT: It can also output images, if the right terminal is configured:

image

srid added a commit that referenced this issue Oct 15, 2024
#316 

This doesn't do much right now, but renders the Markdown from
`om.hack.default.readme`. Spec will change in future iterations.

<img width="1058" alt="image"
src="https://github.com/user-attachments/assets/7514a389-eecc-418c-b444-5957f4518527">
@srid srid changed the title Initial setup of arbitrary project om hack: Initial setup of arbitrary project Oct 22, 2024
@srid

This comment was marked as outdated.

@srid srid mentioned this issue Oct 22, 2024
15 tasks
@srid srid changed the title om hack: Initial setup of arbitrary project om hack: Newcomer guidance Oct 24, 2024
@srid
Copy link
Member Author

srid commented Oct 25, 2024

Cachix configuration is now being piggybacked on om health config, and om hack now tries to "auto resolve" failures, by automatically running cachix use. The authtoken can be passed as env var, thus omnix doesn't have to handle it.

@srid srid changed the title om hack: Newcomer guidance om develop: Nix devShell that automates more and guides the user Oct 25, 2024
@srid
Copy link
Member Author

srid commented Oct 28, 2024

@srid srid closed this as completed Oct 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant