{"id":13440489,"url":"https://github.com/bluskript/nix-inspect","last_synced_at":"2025-04-12T16:39:44.704Z","repository":{"id":231048472,"uuid":"780764359","full_name":"bluskript/nix-inspect","owner":"bluskript","description":"Interactive tui for inspecting nix configs","archived":false,"fork":false,"pushed_at":"2024-12-05T00:07:07.000Z","size":226,"stargazers_count":340,"open_issues_count":8,"forks_count":5,"subscribers_count":8,"default_branch":"main","last_synced_at":"2025-04-03T21:11:18.636Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bluskript.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-04-02T05:45:28.000Z","updated_at":"2025-04-03T08:54:24.000Z","dependencies_parsed_at":"2024-12-21T08:09:22.396Z","dependency_job_id":"65f60690-1b72-4560-aea5-ab9005e13ab9","html_url":"https://github.com/bluskript/nix-inspect","commit_stats":null,"previous_names":["bluskript/nix-inspect"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bluskript%2Fnix-inspect","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bluskript%2Fnix-inspect/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bluskript%2Fnix-inspect/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bluskript%2Fnix-inspect/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bluskript","download_url":"https://codeload.github.com/bluskript/nix-inspect/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248598270,"owners_count":21131058,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-07-31T03:01:23.227Z","updated_at":"2025-04-12T16:39:44.676Z","avatar_url":"https://github.com/bluskript.png","language":"Rust","funding_links":[],"categories":["HarmonyOS","Command-Line Tools","Rust"],"sub_categories":["Windows Manager"],"readme":"# nix-inspect\n\nA ranger-like TUI for inspecting your nixos config and other arbitrary nix expressions.\n\n```\nnix run github:bluskript/nix-inspect\n```\n\n\nhttps://github.com/bluskript/nix-inspect/assets/52386117/21cfc643-653c-43c8-abf1-d75c07f15b7f\n\n### Motivation\n\nA lot of the time my workflow using nixos would involve running a series of commands to find the final merged result of my config:\n```\n❯ : nix repl\nnix-repl\u003e :lf /etc/nixos\nAdded 18 variables.\nnix-repl\u003e nixosConfigurations.felys.config.home-manager.users.blusk.stylix.fonts.monospace.name\n\"Cozette\"\n```\n\n`nix-inspect` aims to improve on this workflow by offering a interactive way to browse a config and offering quality of life features such as bookmarks and a path navigator mode to get where you need quickly.\n\n### Features\n- 🪡 Path navigator to quickly type in or paste a path which live updates as you type (.)\n  - Supports tab completion!\n- 🔍Fuzzy search in the current directory (Ctrl-F or /)\n- 🔖 Bookmarks to save important nix paths, automatically populated with your current system and user (s)\n- ⌨️ Vim keybindings (hjkl, ctl+u, ctrl+d)\n- (planned) 🕑 Recently visited paths tab\n\n### Usage\n\nBy default, `nix-inspect` will try to load your config where it is, by default this will be /etc/nixos if you are using flakes or the path in NIX_PATH if you are using legacy. If this behavior is not what you want, `nix-inspect` comes with some flags:\n\n- `--expr` / `-e` - load an arbitrary expression. Example: `nix-inspect -e { a = 1; }`\n- `--path` / `-p` - load a config at a specific path. Example: `nix-inspect -p /persist/etc/nixos`\n\n### Key Bindings\n\n| Key             | Behavior                  |\n| --------------- | -------------------       |\n| q               | Exit                      |\n| h / left arrow  | Navigate up a level       |\n| j / down arrow  | Select lower item         |\n| k / up arrow    | Select upper item         |\n| l / right arrow | Enter selected item       |\n| f / \"/\"         | Search                    |\n| ctrl+d          | Half-Page Down            |\n| ctrl+u          | Half-Page Up              |\n| s               | Save bookmark             |\n| .               | Path Navigator mode       |\n| n               | Next Search Occurence     |\n| N               | Previous Search Occurence |\n\n\n### Installation\nThis project has been added to nixpkgs, but there may have been changes not yet landed there. It is recommended to use nix-inspect as a flake like so:\n```nix\n{\n  inputs = {\n    nix-inspect.url = \"github:bluskript/nix-inspect\";\n  };\n}\n```\nand then reference it in your `environment.systemPackages`:\n```nix\n{inputs, ...}: {\n  environment.systemPackages = [\n    inputs.nix-inspect.packages.default\n  ];\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbluskript%2Fnix-inspect","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbluskript%2Fnix-inspect","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbluskript%2Fnix-inspect/lists"}