|
|
|
|
|
by ejplatzer
1544 days ago
|
|
I'm not sure about home-manager, but I've been using Nushell as my daily-driver with nix on Macos for almost a month now. This new release will make the integration with nix even easier. Basically, instead of sourcing the nix.sh script in your shell config file (.bashrc or equivalent), you manually add the two significant nix directories to your path in the Nu config file. The Nix Manual[1] explains what the nix.sh script does: "To use Nix, some environment variables should be set. In particular, PATH should contain the directories prefix/bin and ~/.nix-profile/bin." So it's as easy as adding those to your path in the config file, which in Nu looks like `let-env PATH = [...other path elements, "path/to/home/dir/.nix-profile/bin", "/nix/var/nix/profiles/default/bin"]`. [1] https://nixos.org/manual/nix/stable/installation/env-variabl... |
|