/nix/store/kpa5ygpxfnsclyhs99znwva35f41ahns-home-manager/bin/home-manager: line 86: nix-build: command not found
/nix/store/kpa5ygpxfnsclyhs99znwva35f41ahns-home-manager/bin/home-manager: line 86: nix-build: command not found
/nix/store/kpa5ygpxfnsclyhs99znwva35f41ahns-home-manager/bin/home-manager: line 99: /run/user/1000/home-manager-build.1NJcaaYm7c/news-info.sh: No such file or directory
When I run: nix run nixpkgs.home-manager -c home-manager switch
I don’t have much insight to offer on your errors, but I can confirm that home-manager works totally fine with Fish on OSX and NixOS, so I think/hope that’s not the culprit.
Running the script directly: /nix/store/kpa5ygpxfnsclyhs99znwva35f41ahns-home-manager/bin/home-manager shows the help text. I am now going through the nix-shell man page to find clues.
I just ran into this today. home-manager switch and home-manager build both fail with a message about a missing “news-info.sh” file.
I thought I had recovered by uninstalling and reinstalling home-manager: home-manager uninstall; nix-shell '<home-manager>' -A install. Unfortunately, a subsequent home-manager switch still failed.
What I actually had to do was revert a recent change to home.nix: I’d attempted to use ${home.homeDirectory} as part of an option’s value. Since home.homeDirectory was being set within the same Nix “set” {...} and I wasn’t using rec {...}, home.homeDirectory didn’t actually have the intended value in this context. I’m not sure how this led to the error, but simply removing ${home.homeDirectory} from that option’s value allows home-manager switch to succeed.
Narrowing it down just a little more, I tried adding ${home.homeDirectory} to an innocuous part of an unrelated option’s multi-line value and home-manager switch failed the same way again.