1
0
Fork 0
mirror of https://github.com/LnL7/nix-darwin.git synced 2025-03-07 01:07:03 +00:00
nix-darwin/modules/system
Emily fb2bc03f92 activation-scripts: add unmanaged system Nix to activation path
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.)
2025-02-07 20:08:26 +00:00
..
defaults Merge pull request #1262 from belak-forks/additional-tiling-options 2025-01-17 14:28:18 +11:00
activation-scripts.nix activation-scripts: add unmanaged system Nix to activation path 2025-02-07 20:08:26 +00:00
applications.nix applications: Drop store prefix to generalize 2022-09-13 14:57:50 +02:00
base.nix system: remove unnecessary sudo 2025-01-14 15:56:20 +00:00
checks.nix nix: remove nix.configureBuildUsers 2025-02-07 19:44:59 +00:00
default.nix system: tweak ShellCheck settings 2025-01-18 19:34:21 +00:00
defaults-write.nix defaults-write: fix activation script conditionalization 2025-01-16 00:13:57 +00:00
etc.nix write-text: remove support for copy 2024-06-15 12:15:13 +01:00
keyboard.nix (feature) Add swapLeftCtrlAndFn 2024-08-05 13:00:32 +02:00
launchd.nix system: replace for f in $(ls ...) with for f in .../* 2024-11-07 17:20:00 +11:00
nvram.nix treewide: remove lib.mdDoc 2024-04-19 04:05:50 +02:00
patches.nix system: replace for f in $(ls ...) with for f in .../* 2024-11-07 17:20:00 +11:00
shells.nix users: allow shell to be managed by macOS 2024-10-27 21:52:41 +11:00
startup.nix treewide: remove lib.mdDoc 2024-04-19 04:05:50 +02:00
version.nix {environment,readme}: default configuration path to /etc/nix-darwin 2025-01-27 23:10:14 +00:00