I imagine most of us each have a little treasure trove of little scripts and shell aliases that make our lives with Nix just a little bit sweeter.
I invite you to share!
I have my larger fuzzy finder script that has it’s own topic (a bit big to repost so I’ll just link it). This also has a Deoplete (vim) source for completing Options and Packages, pulled from Nix’s env so it will complete all of your overlayed modules and packages.
on the simpler side are these small shell functions to hop into the store path of a program/derivation that I use to sniff around sources.
# `nat fzf` or `nat nixpkgs.fzf` => prints store path of fzf's derivation
function nat () { nix path-info nixpkgs.${1#nixpkgs.} }
function ngo () { cd `nixat ${1}`}
I know I have some others floating around that I will add later, and I am sure collectively we have a ton of convenient little helpers.