This extension does not work on NixOS because NixOS doesn't comply with the FHS. /usr/local does not exist on NixOS.
A simple check if a path exists before checking if path is mount point could prevent a fatal error.
A more generic method to find all filesystem mounts seems more constructive. The extension now checks for some common mount points. Wouldn't it be better to query the current mount points e.g. by reading /etc/mtab?
This extension does not work on NixOS because NixOS doesn't comply with the FHS.
/usr/local
does not exist on NixOS.A simple check if a path exists before checking if path is mount point could prevent a fatal error.
A more generic method to find all filesystem mounts seems more constructive. The extension now checks for some common mount points. Wouldn't it be better to query the current mount points e.g. by reading /etc/mtab?