The option `programs.bash.shellInit` does not exist

This is the error I get when I include this in my Home Manager home.nix file. I get a similar error for interactiveShellInit.

I would like to run neofetch whenever I open my terminal emulator, so I tried placing neofetch in the options given above.

My bash settings are:

  programs.bash = {
    enable = true;
    shellInit = "neofetch";
  };
  • I initially had my bash settings in a separate file that I imported into home.nix - the problem persists even when moving the option into home.nix.
  • Updated my home-manager channel to no effect

Running home-manager release 22.11 channel, and from search.nixos.org programs.bash.shellInit and interactiveShellInit are valid options.

programs.bash.shellInit is not a home-manager option.

search.nixos.org lists nixos options, not home-manager options. They sometimes happen to be the same, but there’s no actual correspondence.

Home manager options are listed in the home-manager manual at Appendix A. Configuration Options or in man home-configuration.nix when you have home-manager installed.

1 Like

Home manager options are listed in the home-manager manual at Appendix A. Configuration Options or in man home-configuration.nix when you have home-manager installed.

Thank you very much for showing me this.

1 Like