Stream: omnix

Topic: Grand plan for omnix


view this post on Zulip Andreas (Jul 12 2024 at 16:31):

Help me understand the project a bit better?

view this post on Zulip Andreas (Jul 12 2024 at 16:41):

are you gonna use dioxus or tauri or both?

view this post on Zulip Srid (Jul 12 2024 at 16:48):

Dioxus is just going to be for the GUI component. There will also be a CLI component.

To begin with, I want to address two use cases for the CLI:

view this post on Zulip Srid (Jul 12 2024 at 16:49):

Somewhat tangential: https://github.com/water-sucks/nixos

view this post on Zulip Andreas (Jul 12 2024 at 16:49):

ah yes, the CEO feature makes sense. How would you want to implement that? I'll check out the flakreate proposal.

view this post on Zulip Andreas (Jul 12 2024 at 16:49):

Where do I find flakreate?

view this post on Zulip Srid (Jul 12 2024 at 16:50):

Andreas said:

Where do I find flakreate?

https://github.com/flake-parts/templates/issues/7

https://github.com/juspay/flakreate

view this post on Zulip Andreas (Jul 12 2024 at 16:50):

ah so nix flake init with parameters

view this post on Zulip Srid (Jul 12 2024 at 16:51):

It probably won't be parameters, but generators as Robert ideated.

view this post on Zulip Andreas (Jul 12 2024 at 16:51):

What would that mean for a CLI?

view this post on Zulip Andreas (Jul 12 2024 at 16:52):

ah so no templates... hm

view this post on Zulip Srid (Jul 12 2024 at 16:52):

The CLI would maintain a registry, run nix flake init and then run the generator to 'complete' it. Something like that.

view this post on Zulip Andreas (Jul 12 2024 at 16:53):

okay, I see. But the generator isn't there yet, right?

view this post on Zulip Srid (Jul 12 2024 at 16:53):

om init --stack=haskell

om init --stack=haskell --stack=treefmt --stack-pre-commit-hooks

view this post on Zulip Andreas (Jul 12 2024 at 16:54):

okay so it would generate a flake for a haskell project with treefmt and pre-commit-hooks I suppose?

view this post on Zulip Srid (Jul 12 2024 at 16:57):

You are asking questions too early. But I'll post PRs and stuff here over time.

view this post on Zulip Andreas (Jul 12 2024 at 16:59):

You are asking questions too early.

And I always thought that was your approach! :rolling_on_the_floor_laughing:

view this post on Zulip Andreas (Jul 12 2024 at 16:59):

yeah but once you actually have something to do there, I might be interested in taking a look!

view this post on Zulip Srid (Jul 12 2024 at 17:02):

My approach is certainly not to design everything up front, write it down, etc.

view this post on Zulip Andreas (Jul 12 2024 at 17:08):

mine neither, so where shall we go first with omnix?

view this post on Zulip Srid (Jul 12 2024 at 17:09):

DM'ed you

view this post on Zulip Srid (Jul 12 2024 at 18:11):

Initial priority:

https://github.com/juspay/omnix/issues/140

view this post on Zulip Srid (Jul 12 2024 at 18:12):

Perhaps I should start adopting a RFC workflow here.

view this post on Zulip Andreas (Jul 12 2024 at 18:48):

yeah maybe

view this post on Zulip Andreas (Jul 12 2024 at 18:50):

so first step is to implement initialization of a flake from templates?

view this post on Zulip Srid (Jul 12 2024 at 18:52):

In particular, first demo would be initializing this home-manager template:

https://github.com/juspay/nix-dev-home/pull/41

view this post on Zulip Srid (Jul 12 2024 at 18:52):

Automatically fixing https://github.com/juspay/nix-dev-home/issues/37 in the process

view this post on Zulip Andreas (Jul 12 2024 at 19:11):

You mean the existing nix-dev-home or what you want to do in that PR?

view this post on Zulip Srid (Jul 12 2024 at 19:47):

One should be able to om init home-manager on any WSL, Ubuntu or macOS machine and get going.

view this post on Zulip Srid (Jul 12 2024 at 19:48):

(Similar to nix run github:juspay/flakreate - which can you run today)


Last updated: Oct 18 2024 at 08:48 UTC