#nix #tui #nixos #command-line-tool #utility #lookup

app nix-options-search

A tool to fuzzy find nix-darwin and nixOS configuration options

6 releases

new 0.3.2 Jan 15, 2025
0.3.1 Jan 8, 2025
0.2.1 Apr 18, 2024
0.2.0 Mar 29, 2024
0.1.0 Mar 8, 2024

#165 in Command line utilities

Download history 4/week @ 2024-09-25 10/week @ 2024-11-27 94/week @ 2024-12-04 67/week @ 2024-12-11 12/week @ 2024-12-18 1/week @ 2024-12-25 144/week @ 2025-01-01 173/week @ 2025-01-08

334 downloads per month

MIT/Apache

51KB
1K SLoC

nix-options-search

Crates.io CI

A simple command-line tool to look up options for configuring nix-darwin, nixOS, and home-manager quickly, with fuzzy finding. TUI

Installation

Cargo

  • Install the rust toolchain in order to have cargo installed by following this guide.
  • run cargo install nix-options-search

Nix flakes

Run nox using nix with flakes enabled with nix run github:madsbv/nix-options-search.

To add nox to a nixOS, nix-darwin or home-manager configuration using flakes, add this repository as a flake input and add inputs.nox.packages.${system}.default to your package list. For example, for a nixOS system with hostname ${hostname} and system type ${system} (one of x86_64-linux, aarch64-linux, x86_64-darwin, aarch64-darwin):

inputs = {
    nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
    nox = {
        url = "github:madsbv/nix-options-search";
        inputs.nixpkgs.follows = "nixpkgs";
    };
};
outputs = inputs: {
    nixosConfigurations.${hostname} = nixpkgs.lib.nixosSystem {
        system = ${system}
        modules = [{ 
                environment.systemPackages = [ inputs.nox.packages.${system}.default ];
        }];
    };
};

License

Licensed under either of

at your option.

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.

See CONTRIBUTING.md.

Dependencies

~26–39MB
~570K SLoC