From 5fc78c95e53be993c08a18a7c086f9677f697608 Mon Sep 17 00:00:00 2001 From: Frantisek Bohacek Date: Sun, 3 Dec 2023 14:47:19 +0100 Subject: [PATCH] feat(zsh): add function for browsing nixpgks derivations --- modules/shell/zsh.nix | 3 +++ 1 file changed, 3 insertions(+) diff --git a/modules/shell/zsh.nix b/modules/shell/zsh.nix index 74fba1b..eebd252 100644 --- a/modules/shell/zsh.nix +++ b/modules/shell/zsh.nix @@ -25,6 +25,9 @@ function loc { nix-locate --top-level -w /bin/$1 } + function exa-nixpkgs-derivation { + nix run nixpkgs#eza -- --tree $(nix build nixpkgs#$1 --print-out-paths --out-link /tmp/$1) + } # source /etc/set-environment ''; -- 2.48.1