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

curlable install of static binary #207

Open
srid opened this issue Aug 7, 2024 · 4 comments
Open

curlable install of static binary #207

srid opened this issue Aug 7, 2024 · 4 comments
Assignees
Milestone

Comments

@srid
Copy link
Collaborator

srid commented Aug 7, 2024

Let's provide a command like the following the installs omnix:

curl --proto '=https' --tlsv1.2 -sSf -L https://install.omnix.page/cli | sh -s -- install

We need to figure out where to upload the binary, and how to serve it.

(This not high priority or critical for MVP; since it will be less useful without #206 anyway)

@srid srid added this to the v2 milestone Aug 7, 2024
@srid
Copy link
Collaborator Author

srid commented Sep 12, 2024

Another reason for having curlable static binary is that to run the health command itself, the user may end up compiling omnix from scratch, because they haven't added themselves to trusted-users yet (which health will catch, but only in future).

I noticed this during https://x.com/sridca/status/1834327210301210873

@shivaraj-bh
Copy link
Member

shivaraj-bh commented Sep 15, 2024

#277 paves the way to ship a curlable static binary

Edit: To be specific, by removing the need to ship the forked nix static binary

@srid
Copy link
Collaborator Author

srid commented Sep 20, 2024

Another reason for having curlable static binary is that to run the health command itself, the user may end up compiling omnix from scratch, because they haven't added themselves to trusted-users yet (which health will catch, but only in future).

I noticed this during https://x.com/sridca/status/1834327210301210873

This should help in the meanwhile:

nixos-asia/website@facef6e

@srid
Copy link
Collaborator Author

srid commented Sep 20, 2024

One issue with curlable install is - how do we deal with upgrades down the line?

We don't want people to be stuck with old version of Omnix. With nix-dev-home, this is not an issue, as they can always update their flake inputs; at the slight inconvenience of 4 unnecessary prompts during initial setup (srid/nixos-flake#66).


Thinking aloud, what if we just provided this script:

https://gist.github.com/srid/24f6a25b942699291751d034ba089574

New folks with their new macbooks would then just run this command and setup everything up.

We will also have to deal with moving of dotfiles away: juspay/nix-dev-home#11

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants