nix-editor VS rnix-parser

Compare nix-editor vs rnix-parser and see what are their differences.

nix-editor

A simple rust program to edit NixOS configuration files with just a command (by snowfallorg)

rnix-parser

A Nix parser written in Rust [maintainer=@oberblastmeister] (by nix-community)
Our great sponsors
  • WorkOS - The modern identity platform for B2B SaaS
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • SaaSHub - Software Alternatives and Reviews
nix-editor rnix-parser
5 3
64 331
- 2.4%
2.5 0.0
about 2 months ago 11 months ago
Rust Nix
MIT License MIT License
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.

nix-editor

Posts with mentions or reviews of nix-editor. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2022-09-20.
  • SnowflakeOS - Creating a GUI focused NixOS-based distro
    10 projects | /r/NixOS | 20 Sep 2022
    I don't plan on it at this moment, however, if someone finishes the packagekit backend for Nix, the appstream data I'm working on collecting would work to display icons and screenshots. Also if someone who knew qt/kirigami development wanted to make something similar to nix-software-center, the backend tool that reads and modifies configuration values is a separate project: nix-editor, and I would be willing to help with any issues that arose from that.
  • Nix Software Center: gtk4/libadwaita app store for NixOS
    11 projects | /r/NixOS | 8 Sep 2022
    You can mix and match as much as you want! Both tools use nix-editor to read and modify your configuration.nix file. So any changes made manually would be visible within the tools. Some more complex configuration structures might confuse the tools, but the goal is for it to just work
  • NixOS Configuration Editor: A gtk4/libadwaita app to edit and manage basic configurations without (much) coding
    6 projects | /r/NixOS | 17 Jul 2022
    Tried it out, lots of cool features! The only nitpick I noticed was that it gets a bit confused with nested attributes, for example programs.gnupg.agent.enable = true; programs.gnupg.agent.enableSSHSupport = true; vs programs.gnupg.agent = { enable = true; enableSSHSupport = true; }; it doesn't seem able to handle the latter case yet. But if you ever wanted to, I made a crate that handles the backend of editing .nix file, nix-editor, crate here: https://crates.io/crates/nix-editor. It also uses rnix and handles all the attribute mess and editing files.
  • auto update notifier & gui for non-tech users?
    5 projects | /r/NixOS | 27 Jun 2022
    I definitely plan to support as much as I can, but there is definitely a level of complexity that can never be truly translated to a graphical tool. What I've found helpful during development for me is that I split the frontend GUI and the backed parser and editor into two projects (nixos-conf-editor and nix-editor), that way I could tackle a lot of the parsing and editing alone without worrying about specific GUI features needed (and use it for other projects). Later when I need some feature I add it to nix-editor. So far nix-editor supports simple attribute modification, array adding and popping, and recursive attribute definition and dereferencing. It's definitely not perfect by any means, but so far it's been enough for the projects I've been working on. I definitely need to credit any success I've had so far to the developers of rnix-parser which translates nix expression to easy to manage ASTs.

rnix-parser

Posts with mentions or reviews of rnix-parser. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2022-06-27.
  • auto update notifier & gui for non-tech users?
    5 projects | /r/NixOS | 27 Jun 2022
    I definitely plan to support as much as I can, but there is definitely a level of complexity that can never be truly translated to a graphical tool. What I've found helpful during development for me is that I split the frontend GUI and the backed parser and editor into two projects (nixos-conf-editor and nix-editor), that way I could tackle a lot of the parsing and editing alone without worrying about specific GUI features needed (and use it for other projects). Later when I need some feature I add it to nix-editor. So far nix-editor supports simple attribute modification, array adding and popping, and recursive attribute definition and dereferencing. It's definitely not perfect by any means, but so far it's been enough for the projects I've been working on. I definitely need to credit any success I've had so far to the developers of rnix-parser which translates nix expression to easy to manage ASTs.
  • Advantages of flakes
    2 projects | /r/NixOS | 17 Feb 2022
    I'm hopeful that with https://github.com/nix-community/rnix-parser being a thing now, we can get some better Nix tooling, particularly for stuff like linting and doc extraction.
  • The Curse of NixOS
    35 projects | news.ycombinator.com | 24 Jan 2022
    Okay, yes, I agree with all of that. Flakes are kind of a module system, but having clearer semantics around functions and classes would definitely help with both code readability and producing better stack traces.

    And a proper type system would be awesome.

    Regarding docs, it is interesting that portions of the nixpkgs source do seem to have docblock-like comments above the functions, but AFAICT there's no formalized process for extracting or rendering those. Given that https://github.com/nix-community/rnix-parser exists, I wonder how big of a leap it would be to actually extract those, render them into rST pages, and generate a searchable Sphinx manual.

What are some alternatives?

When comparing nix-editor and rnix-parser you can also consider the following projects:

nixos-conf-editor - A libadwaita/gtk4 app for editing NixOS configurations

Nixos-Gui - Gui for Nixos package manager

supertux - SuperTux source code

Relm4 - Build truly native applications with ease!

nickel - Better configuration for less

os-installer-snowflake-config

nix - Nix, the purely functional package manager

gtk-rs-core - Rust bindings for GNOME libraries

nvd

nixos-appstream-generator - Proof of concept appstream data generator for NixOS

system-updater - Systemd services for checking for and applying system updates.