8.nix-darwin/modules
Emily e7bd2f8f2f nix-tools: re‐add nixPackage
(With some tweaks to handle `nix.enable` and order it at a more
sensible position in the `$PATH`.)

The installers actually install Nix into `root`’s profile for some
reason, which means that the path’s prioritization backfires when
the script runs as root and we’re managing the Nix installation. When
running `darwin-rebuild` as a normal user, this wasn’t a problem.

Maybe we should just have a check to make sure there’s no conflicting
Nix in `root`’s profile – it seems pretty bad for `root` to
get the wrong Nix – but it would trigger for almost everyone,
which seems kind of annoying. I guess we could automatically
remove it from `root`’s profile if it matches what’s in
`/nix/var/nix/profiles/default`…

This reverts commit 02232f71c5.
2025-03-31 00:34:55 +09:00
..
documentation Reapply "eval-config: set class" 2024-06-13 14:35:20 +01:00
environment {environment,readme}: default configuration path to /etc/nix-darwin 2025-01-27 23:10:14 +00:00
examples treewide: point to the new GitHub organization 2025-03-27 17:07:57 +00:00
fonts fonts: remove fonts.fontDir.enable 2024-06-13 11:56:58 +01:00
launchd feat: use wait4path with script launchd option 2024-09-22 15:30:21 +10:00
lib write-text: remove support for copy 2024-06-15 12:15:13 +01:00
misc services/dnscrypt-proxy: init 2025-02-28 19:58:19 +07:00
networking networking: Restore the original /etc/hosts on activation 2025-02-26 16:52:13 -05:00
nix nix-tools: re‐add nixPackage 2025-03-31 00:34:55 +09:00
power power: move the check for restartPowerfailure support to checks.nix 2024-12-29 12:13:54 +01:00
programs Merge pull request #1233 from adamcstephens/fish/package 2024-12-29 10:04:09 +11:00
security pam: add pam_watchid support 2025-02-25 23:51:30 +08:00
services autossh: Fix incorrect reference to systemd 2025-03-23 08:39:49 +01:00
system treewide: point to the new GitHub organization 2025-03-27 17:07:57 +00:00
time time: shellcheck fix 2024-11-05 11:12:21 +10:00
users fix: use correct username for profile 2025-03-10 19:55:24 +01:00
alias.nix Update def and implementation of nix.package to match NixOS module 2022-08-16 10:41:51 -07:00
homebrew.nix homebrew: remove --no-lock flag 2025-03-04 12:09:11 -05:00
meta.nix treewide: remove lib.mdDoc 2024-04-19 04:05:50 +02:00
module-list.nix services/dnscrypt-proxy: init 2025-02-28 19:58:19 +07:00