-
Notifications
You must be signed in to change notification settings - Fork 5
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
Use flake-schemas #166
Use flake-schemas #166
Conversation
📦 Packages
Run: nix build github:srid/nixos-config#<name>
──────────┬───────────────────────────────────────────────────────
name │ description
══════════┼═══════════════════════════════════════════════════════
activate │ Activate NixOS/nix-darwin/home-manager configurations
default │ Activate NixOS/nix-darwin/home-manager configurations
update │ N/A
──────────┴───────────────────────────────────────────────────────
🐚 Devshells
Run: nix develop github:srid/nixos-config#<name>
─────────┬─────────────
name │ description
═════════┼═════════════
default │ N/A
─────────┴─────────────
🔍 Checks
Run: nix flake check
─────────┬─────────────
name │ description
═════════┼═════════════
treefmt │ N/A
─────────┴─────────────
🐧 NixOS Configurations
Run: nixos-rebuild switch --flake github:srid/nixos-config#<name>
───────────┬─────────────
name │ description
═══════════┼═════════════
immediacy │ N/A
───────────┴─────────────
🍏 Darwin Configurations
Run: darwin-rebuild switch --flake github:srid/nixos-config#<name>
────────────┬─────────────
name │ description
════════════┼═════════════
appreciate │ N/A
────────────┴───────────── |
Very useful change. I should make nixci use this as well somehow, rather than wait for srid/devour-flake#8 |
Weren't we planning on importing nixci to omnix, just like nix-health? |
Yes, further PRs to nixci will be in this repo. |
You can now nix run the app, it comes wrapped with nix run github:juspay/omnix/flake-schemas show github:srid/nixos-config |
3d53586
to
2bcc118
Compare
The EDIT: done, b3cfad3 |
487f696
to
8e1da73
Compare
Doesn’t look very pleasant, but that seems like the only way. cc: @srid |
Also, for static binary to work, we have to change the compile time ENVs to runtime. Which means |
As long as |
Also make the corresponding changes in `omnix-cli` and `omnix-gui`
14c37f3
to
ad781b1
Compare
Here’s how the CLI and GUI outputs looks so far: CLI
GUI |
Apart from the traditional outputs, you also see |
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@shivaraj-bh LGTM, great. Did a final review.
Co-authored-by: Sridhar Ratnakumar <3998+srid@users.noreply.github.com>
I have addressed all the comments. How does this look? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great!
This PR enforces
nix flake show
to usenix
compiled from https://github.com/DeterminateSystems/nix-src/tree/flake-schemas by default (see NixOS/nix#8892). This allows defining a custom schema of the user's choice, with the default set to https://github.com/DeterminateSystems/flake-schemas.TODO:
WrapAllow overriding theom
withnix-flake-schemas
scriptnix
with flake-schemas viaNIX_FLAKE_SCHEMAS_BIN
envomnix-gui
nix_rs
ChangeLogresolves #161