Nix Editor === [![crates.io][crates badge]][crate] [![Coverage Status][coveralls badge]][coveralls] [![Built with Nix][builtwithnix badge]][builtwithnix] [![License: MIT][MIT badge]][MIT] A command line utility for modifying NixOS configuration values.

Installation

nix-env

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

nix profile

nix profile install github:vlinkz/nix-editor

Run with Nix Flakes

nix run github:vlinkz/nix-editor -- --help

``` Usage: nix-editor [OPTIONS]

Arguments: Configuration file to read Nix configuration option arribute

Options: -v, --val Value to write -a, --arr Element to add -d, --deref Dereference the value of the attribute -i, --inplace Edit the file in-place -o, --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 ```