# modules/home/tools.nix — runtime closure for the hand-written toolbox in
# ~/.local/bin, plus the general command-line tools.
#
# ~/.local/bin itself is not managed here on purpose: it is a flat git repo
# (vault README: "git init there afterwards so editing a file edits the live
# command"). NixOS puts it first on PATH (modules/hosts/laptop/toolbox.nix).
{ ... }:
{
flake.homeModules.tools =
{ config, pkgs, lib, ... }:
let
# ns [query]: fuzzy search of nixpkgs (+ NixOS and home-manager options) in
# the terminal, with the package description as the preview. nix-search-tv
# indexes search.nixos.org data locally on first run and refreshes it itself.
# Enter print the attribute name (e.g. to paste into tools.nix)
# ctrl-o open the homepage ctrl-s open the nixpkgs source
# ctrl-y copy the attribute name
ns = pkgs.writeShellScriptBin "ns" ''
nst=${pkgs.nix-search-tv}/bin/nix-search-tv
exec $nst print | ${pkgs.fzf}/bin/fzf \
--query="$*" --scheme=history --prompt='nix › ' \
--preview="$nst preview {}" --preview-window='right,60%,border-left,wrap' \
--bind="ctrl-o:execute-silent(${pkgs.xdg-utils}/bin/xdg-open \$($nst homepage {}))" \
--bind="ctrl-s:execute-silent(${pkgs.xdg-utils}/bin/xdg-open \$($nst source {}))" \
--bind="ctrl-y:execute-silent(printf %s {} | ${pkgs.wl-clipboard}/bin/wl-copy)" \
--header='enter: print · ctrl-y: copy · ctrl-o: homepage · ctrl-s: source'
'';
pythonEnv = pkgs.python3.withPackages (ps: with ps; [
cryptography
argon2-cffi
rich
questionary
pikepdf
mutagen
pillow
numpy
pyqt6
youtube-transcript-api
]);
in
{
home.packages = with pkgs; [
pythonEnv
ns
nix-search-tv # `ns`, and `nix-search-tv print|preview` by hand
perl
git
jujutsu
# Encrypted git remotes (git-crypt, git-remote-gcrypt) and the GitLab CLI.
git-crypt
git-remote-gcrypt
glab
gnutar
zstd
pigz
xz
rsync
rclone
p7zip
aria2
libarchive
gnupg
openssl
pinentry-gnome3
ffmpeg
yt-dlp
atomicparsley
gallery-dl
imagemagick
img2pdf
resvg
zathura
calibre
poppler-utils
starship
bat
eza
fd
ripgrep
fzf
zoxide
atuin
jq
curl
wget
gh
fastfetch
wl-clipboard
libnotify
ariang-native
discordchatexporter-cli # DiscordChatExporter.Cli, driven by ~/.local/bin/dcx
# General tools (2026-10-08): what the dotfiles' zsh modules look for
# (modern.zsh, core.zsh) and what the stock Omarchy keys expect.
uv # PEP-723 scripts in ~/.local/bin (dcx, dorkforge); managed Pythons work via nix-ld
nodejs
btop
lazygit
lazydocker
tealdeer # `tldr`
dust
duf
procs
difftastic
hyperfine
glow
onefetch
tokei
xh
ncdu
parallel
unzip
zip
tree
file
cbonsai
cmatrix
localsend # phone ↔ laptop file drops on the LAN; port 53317 is open in modules/hosts/laptop/configuration.nix
vesktop # Discord client; its config is linked from the dotfiles (dotfiles.nix)
# Carried from the Mac Brewfile (2026-10-14): the CLI formulae that were
# not on this machine yet. Left out on purpose: macOS-only (mas, colima,
# pinentry-mac, gnu-sed), language toolchains (go, rust, php, dotnet,
# poetry, pipx; devshells.nix is the place for those), and the pentest
# formulae, which live in the daemon.pentest categories in
# modules/hosts/laptop/configuration.nix (wireless, dfir and reversing
# hold aircrack-ng, sleuthkit, radare2 and the rest, and are off there).
mise # ~/.config/mise is linked (dotfiles.nix); core.zsh activates it
zsh-abbr # unfree (CC-BY-NC-SA); core.zsh sources it for the gs/ga/gc… abbreviations
cava # ~/.config/cava is linked (dotfiles.nix)
mpc # CLI for the mpd in media.nix
helix
mprocs
mdcat
ripgrep-all # `rga`: ripgrep through PDFs, archives, office docs
pdfgrep
poppler-utils # pdftotext, pdfinfo, pdfimages
unar # `unar`/`lsar`: rar, 7z, cab, sit, … in one tool
lbzip2
pbzip2
fdupes
pwgen
git-filter-repo
tree-sitter # the CLI
ffmpegthumbnailer
zbar # `zbarimg`: read QR codes and barcodes from images
wimlib # `wimlib-imagex`: Windows install images (.wim/.esd)
hugo
tectonic
himalaya # mail in the terminal
signal-cli
byobu
nicotine-plus
# terminal toys
cowsay
fortune
lolcat
toilet
sl
nyancat
asciiquarium
pipes # `pipes.sh`
tty-clock
nms # no-more-secrets: the Sneakers decrypt effect
hyfetch
];
programs.codex.enable = true;
# The browser has a module of its own: modules/home/floorp.nix.
}
;
}