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
334 downloads per month
51KB
1K
SLoC
nix-options-search
A simple command-line tool to look up options for configuring nix-darwin, nixOS, and home-manager quickly, with fuzzy finding.
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
- Apache License, Version 2.0 (LICENSE-APACHE or http://www.apache.org/licenses/LICENSE-2.0)
- MIT license (LICENSE-MIT or http://opensource.org/licenses/MIT)
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