web editor for nix files
edit nixos configuration in a graphical webinterface
proof of concept
- prototype an incremental nix evaluator for rnix-lsp
- use
nix repl
to discover the nixos config schema- latency is much better than with
nix-instantiate
- latency is much better than with
- thin client: request only a minimum amount of data to render the current view
- introspection: auto-generate the editor interface, based on the nixos config schema
- related topic: json-schema-form
- similar project: graphql api viewer
- graphics and text
- graphical interface
- text interface
this project is based on
- lezer-parser-nix - nix parser in javascript
- monaco-lezer-parser - integration for monaco-editor and lezer-parser
- nix-eval-js - nix interpreter in javascript
- solidjs-resizable-splitter-component
- solidjs-monaco-editor-component
todo: also support tree-sitter parsers for WASM browsers
- tree-sitter-nix - nix parser in WASM
- monaco-tree-sitter - integration for monaco-editor and tree-sitter
nixos-patch-installer is an old version of this project, with a focus on connecting nixpkgs PRs and /etc/nixos