mirror of
https://github.com/LnL7/nix-darwin.git
synced 2025-03-07 01:07:03 +00:00
Currently, the `bin` directory of the configured system is embedded in the `$PATH` of activation scripts, but not other elements of the default `environment.systemPath` like `/nix/var/nix/profiles/default/bin` or `/usr/local/bin`. This means that when nix-darwin is not managing the Nix installation, activation scripts like Home Manager’s that want to look up the system‐managed Nix can’t find it. Search for it on the entire `environment.systemPath` and add the appropriate directory if found. We leave the launchd `activate-system` daemon alone, because it has erroneously referred to `@out@/sw/bin` forever and therefore never got a Nix on the path to begin with. That’s a problem for another time. (The more ideal solution is probably for Home Manager activation to be driven by launchd or something, but that’s a longer‐term goal.) |
||
---|---|---|
.. | ||
defaults | ||
activation-scripts.nix | ||
applications.nix | ||
base.nix | ||
checks.nix | ||
default.nix | ||
defaults-write.nix | ||
etc.nix | ||
keyboard.nix | ||
launchd.nix | ||
nvram.nix | ||
patches.nix | ||
shells.nix | ||
startup.nix | ||
version.nix |