Add isPath to trivial.nix

Signed-off-by: Shea Levy <shea@shealevy.com>