What do you guys do for this? Most of the tooling out there to examine processes on Linux seems to assume short path names to binary executables, but as we know, Nix does not have that. I wrote the following function, which has helped me filter down a process list to anything I need to see (by also letting me scroll right as far as I need to), but things like the "Command" column in btop++ are essentially useless due to the commonly long NixOS pathnames.
Are there any tools you folks use to get better visibility on processes on NixOS?
list-procs() {
PS_PERSONALITY=linux ps -ewwo pid,%cpu,%mem,nice,pri,rtprio,args --sort=-pcpu,-pid | awk -v filter="$1" 'NR==1 || tolower($0) ~ to