nix-install

Crates.ionix-install
lib.rsnix-install
version0.1.9
created_at2024-09-10 15:41:47.569214+00
updated_at2025-07-25 17:42:36.904339+00
descriptionA simple command line utility to quickly add packages to your configuration.nix using fuzzy search and rebuild all in one command :)
homepagehttps://github.com/mateo-covacho/nix-install
repositoryhttps://github.com/mateo-covacho/nix-install
max_upload_size
id1370521
size4,161,303
Mateo Covacho Berrocal (mateo-covacho)

documentation

README

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.

Dependencies

You must install :

  • nix-search
  • fzf

You must add the line: asda

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 into fuzzy search >

TODO

  • Package nix-install as a crate.
  • Add it to Nix Packages.
  • integrate flags for use case like 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.

Commit count: 17

cargo fmt