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
I'm looking for a way to declaratively set the PATH environment variable used by my macOS applications. I think currently there is no option for this in nix-darwin.
Setting the PATH variable is helpful when GUI apps should use binaries of the nix-store which they can't find by default, because the default PATH variable only includes /usr/bin:/bin:/usr/sbin:/sbin.
It may not seem pretty, but since this is how the system module works under the hood, you may as well add your imperative command to one of the options below. It will be executed upon each activation.
Running sudo launchctl config user path "/Users/nik/.nix-profile/bin:/usr/bin:/bin" gives me a 'sudo launchctl config user path…' terminated by signal SIGBUS (Misaligned address error). But I guess this is not a nix problem...
I'm looking for a way to declaratively set the
PATH
environment variable used by my macOS applications. I think currently there is no option for this in nix-darwin.Setting the PATH variable is helpful when GUI apps should use binaries of the nix-store which they can't find by default, because the default PATH variable only includes
/usr/bin:/bin:/usr/sbin:/sbin
.For some context refer to this Stackoverflow answer: https://stackoverflow.com/a/70510488.
The text was updated successfully, but these errors were encountered: