nix-tree/README.md

41 lines
996 B
Markdown
Raw Normal View History

2020-06-25 01:41:28 +03:00
# nixdu
2020-06-25 01:47:16 +03:00
2020-06-29 13:56:15 +03:00
Interactively browse the dependency graph of your Nix derivations.
2020-06-29 13:53:45 +03:00
2020-07-01 09:24:43 +03:00
[![asciicast](https://asciinema.org/a/XVVOPQuU6ZQ0vGuO8ejr4JB11.svg)](https://asciinema.org/a/XVVOPQuU6ZQ0vGuO8ejr4JB11)
2020-06-29 13:53:45 +03:00
## Installation
```
2020-07-02 00:24:45 +03:00
nix-env -iA nixdu -f https://github.com/utdemir/nixdu/archive/master.tar.gz
```
A nixpkgs overlay is also provided via `overlay.nix`, that can be used
with tools like [home-manager][]:
```nix
nixpkgs.overlays = [
(let url = https://github.com/utdemir/nixdu/archive/master.tar.gz;
in import "${builtins.fetchTarball url}/overlay.nix" {})
];
home.packages = [ pkgs.nixdu ];
2020-06-29 13:53:45 +03:00
```
## Usage
2020-06-25 01:47:16 +03:00
```
2020-07-01 09:34:37 +03:00
$ nixdu --help
nixdu --help
Usage: nixdu [paths] [-h|--help]
Paths default to $HOME/.nix-profile and /var/run/current-system.
Keybindings:
hjkl/Arrow Keys : Navigate
q/Esc: : Quit / close modal
w : Open why-depends mode
i : Toggle modeline
? : Show help
2020-06-25 01:47:16 +03:00
```
2020-07-02 00:24:45 +03:00
[home-manager]: https://github.com/rycee/home-manager