You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Anything in home.packages is not available to run noninteractively via SSH. For example, with this home-manager config:
home.packages=[pkgs.hello];
I see the following behavior:
[sam] $ ssh server
[sam@server] $ hello
Hello, world!
[sam@server] $ exit
[sam] $ ssh server hello
bash: line 1: hello: command not found
I should be able to run ssh server hello and successfully see "Hello, world!"
This is only the case using standalone home-manager on macOS, not in any of the following cases:
home-manager as a nix-darwin module
home-manager standalone on NixOS
home-manager as a NixOS module
In all three of these other cases, ssh server hello works correctly.
The issue is that packages in home.packages aren't added to my PATH for noninteractive shells. This is because everything in home.packages is added to PATH in /nix/var/nix/profiles/default/etc/profile.d/nix-daemon.sh which is sourced in /etc/bashrc which had nothing to do with home-manager. So it seems like home-manager has been relying on some behavior from nixos and nix-darwin (I actually can't track down where home.packages gets added to my PATH when using home-manager as a nix-darwin module).
Are you following the right branch?
Is there an existing issue for this?
Issue description
Anything in
home.packages
is not available to run noninteractively via SSH. For example, with this home-manager config:I see the following behavior:
I should be able to run
ssh server hello
and successfully see "Hello, world!"This is only the case using standalone home-manager on macOS, not in any of the following cases:
In all three of these other cases,
ssh server hello
works correctly.The issue is that packages in
home.packages
aren't added to my PATH for noninteractive shells. This is because everything inhome.packages
is added to PATH in/nix/var/nix/profiles/default/etc/profile.d/nix-daemon.sh
which is sourced in/etc/bashrc
which had nothing to do with home-manager. So it seems like home-manager has been relying on some behavior from nixos and nix-darwin (I actually can't track down where home.packages gets added to my PATH when using home-manager as a nix-darwin module).Maintainer CC
No response
System information
The text was updated successfully, but these errors were encountered: