4
0
Fork
You've already forked nix-editor
0
🔖 | Hard fork of @snowfallorg/nix-editor. [maintainer=@bahrom04]
  • Rust 91.3%
  • Nix 8.7%
2026年03月05日 10:46:47 +05:00
.github/workflows chore: update deps 2026年01月29日 00:53:56 +05:00
src fix: format the code 2026年03月04日 17:21:25 +05:00
.envrc chore: enable direnv 2026年01月29日 00:34:39 +05:00
.gitignore fix: else if -> match 2026年03月04日 13:49:58 +05:00
Cargo.lock chore: update deps 2026年01月29日 00:53:56 +05:00
Cargo.toml chore: update deps 2026年01月29日 00:53:56 +05:00
default.nix Update nix files 2023年02月07日 14:34:59 -05:00
flake.lock chore: update deps 2026年01月29日 00:53:56 +05:00
flake.nix chore: limit hydra jobs only to x86_64-linux 2026年03月05日 10:46:47 +05:00
LICENSE Add MIT License 2022年05月21日 21:14:54 -04:00
README.md Update README to point to snowfallorg 2023年12月20日 15:43:41 -05:00
rust-toolchain.toml chore: update deps 2026年01月29日 00:53:56 +05:00

Nix Editor

crates.io Coverage Status Built with Nix License: MIT

A command line utility for modifying NixOS configuration values.

Installation

nix-env

git clone https://github.com/snowfallorg/nix-editor
nix-env -f nix-editor -i nix-editor

nix profile

nix profile install github:snowfallorg/nix-editor

Run with Nix Flakes

nix run github:snowfallorg/nix-editor -- --help
Usage: nix-editor [OPTIONS] <FILE> <ATTRIBUTE>
Arguments:
 <FILE> Configuration file to read
 <ATTRIBUTE> Nix configuration option arribute
Options:
 -v, --val <VAL> Value to write
 -a, --arr <ARR> Element to add
 -d, --deref Dereference the value of the attribute
 -i, --inplace Edit the file in-place
 -o, --output <OUTPUT> Output file for modified config or read value
 -r, --raw Prints console output without newlines or trimmed output
 -f, --format Formats output using nixpkgs-fmt. Helps when writing new values
 -h, --help Print help
 -V, --version Print version