I have the packages gh and gh-markdown-preview installed, but gh markdown-preview does not work. Presumably this is because gh wants to handle the installation of extensions:
This is how Home Manager solves the problem:
Any solution without using Home Manager? (In particular, I am looking for a solution that lets me have gh with the extension gh-markdown-preview in a flake development environment.)
I sometimes run gh-dash as is, without trying to access it through gh.
You could try to create a bash wrapper called gh that decides whether to execute gh or an extension, or you could generate a directory in the nix store with the extension list and pass it to gh via the GH_CONFIG_DIR environment variable?