Skip to content

Interactive tui for inspecting nix configs

License

Notifications You must be signed in to change notification settings

Mic92/nix-inspect

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

nix-inspect

Interactive nix config viewer

nix run github:bluskript/nix-inspect
preview.mp4

Features

  • 🪡 Path navigator to quickly type in or paste a path which live updates as you type
  • 🔍Fuzzy search in the current directory
  • 🔖 Bookmarks to save important nix paths, automatically populated with your current system and user
  • ⌨️ Vim keybindings
  • (planned) 🕑 Recently visited paths tab

Installation

As of now the project remains unpackaged in nixpkgs, so the recommended installation method is through flakes:

{
  inputs = {
    nix-inspect.url = "github:bluskript/nix-inspect";
  };
}

and then reference it in your environment.systemPackages:

{inputs, ...}: {
  environment.systemPackages = [
    inputs.nix-inspect.packages.default
  ];
}

Key Bindings

Key Behavior
q Exit
h / left arrow Navigate up a level
j / down arrow Select lower item
k / up arrow Select upper item
l / right arrow Enter selected item
f / "/" Search
ctrl+d Half-Page Down
ctrl+u Half-Page Up
s Save bookmark
. Path Navigator mode

Known Issues / TODO

  • Legacy non-flake config support
  • Loading arbitrary nix exprs defined by the user

About

Interactive tui for inspecting nix configs

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Rust 85.2%
  • C++ 10.8%
  • Nix 3.0%
  • Meson 1.0%