#fuzzy-search #nixos #nix #configuration #packages #command-line-tool #rebuild

app nix-install

A simple command line utility to quickly add packages to your configuration.nix using fuzzy search and rebuild all in one command :)

6 releases

0.1.5 Dec 1, 2024
0.1.4 Sep 11, 2024

#939 in Command line utilities

Download history 327/week @ 2024-09-06 105/week @ 2024-09-13 21/week @ 2024-09-20 9/week @ 2024-09-27 1/week @ 2024-10-04 142/week @ 2024-11-29 63/week @ 2024-12-06

205 downloads per month

MIT license

1MB
99 lines

nix-install

nix-install is a simple command line utility to quickly add packages to your configuration.nix using fuzzy search and rebuild all in one command.

Features

Fuzzy Search: Easily find and add packages with minimal typing. Declarative: Integrates directly with configuration.nix, maintaining NixOS's declarative nature. One Command: Add packages and rebuild your system in one step.

Installation

Currently, you need to clone the repository and add the script that calls the Rust binary to your PATH.

Add the script to your PATH, e.g., by linking it to /usr/local/bin

Usage

add the comment line "# add packages above" and nix-install will add packages above

nix-install < Type in package name >

TODO

  • Package nix-install as a crate.
  • Add it to Nix Packages.
  • integrate flagh for usecase liek no rebuild and other cases

Philosophy

While some community members believe this approach might go against the declarative nature of NixOS, nix-install still maintains this principle by modifying configuration.nix. It offers a more convenient way to manage packages without compromising the core values of NixOS.

Open to civil discussion and feedback.

No runtime deps