-
-
Notifications
You must be signed in to change notification settings - Fork 503
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
bug: Setting Fish/Nushell as Default Shell Breaks Home Manager Modules on macOS #1380
Comments
I don’t think we have Nushell support in nix-darwin, but for fish you need to ensure you have |
already do that |
What is your PATH in non working fish? |
I use home manager as darwin module to config nix this is my fish module config: { config, pkgs, ... }:
{
programes.fish = {
enable = true;
interactiveShellInit = ''
set fish_greeting # Disable greeting
'';
};
} |
|
this is just the demonstrate, my fish config is apply because It's not show the welcome message |
For reference, this is a cross-post of nix-community/home-manager#6568. |
It would help if you answered the questions you have been asked. ALso show us your config. If there is something you want to keep secret then cut out all but the fish setup. |
Not thing secret here, this It my full |
In your darwin setup where do you set up fish? I think it needs to be programs.fish.enable = true; My nix knowledge is limited when you atrt importing files so just a guess, You can check what the actual values set are by using nix repl |
|
Using nix repl on your config gives
|
That's the Home Manager setting. As I said, you must set it in both nix-darwin and Home Manager. |
I see. Using |
Are you following the right branch?
Is there an existing issue for this?
Issue description
Description
I use shell integration for every module. When I set Fish or Nushell as my default shell on macOS, Home Manager modules (such as
atuin
,eza
,fzf
, ... ) none of them are work or recognized. However, if I use macOS's default shell (zsh
) and then manually startfish
ornu
, everything works fine.Steps to Reproduce
/etc/shells
.atuin
,eza
).Expected Behavior
Fish or Nushell should correctly recognize commands installed by Home Manager.
Actual Behavior
Commands such as
atuin
,eza
, andfzf
are not found, leading to errors like:Additional Information
Possible Cause
Home Manager environment variables and paths may not be properly initialized when Fish/Nushell is set as the default shell.
Would appreciate any insights on how to fix this issue! Thanks!
Maintainer CC
@trueNAHO @rycee
System information
The text was updated successfully, but these errors were encountered: