1
0
Fork 0
mirror of https://github.com/LnL7/nix-darwin.git synced 2025-04-08 10:09:38 +00:00
nix-darwin/modules/nix
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
..
default.nix Merge pull request #1332 from emilazy/push-vyxwvkuuvvvw 2025-02-14 15:50:17 +00:00
linux-builder.nix linux-builder: check for nix.enable 2025-02-11 20:10:55 +00:00
nix-darwin.nix nix-tools: re‐add nixPackage 2025-03-31 00:34:55 +09:00
nixpkgs-flake.nix nixpkgs-flake: check for nix.enable 2025-02-11 20:10:55 +00:00
nixpkgs.nix Revert "nixpkgs: make config.nixpkgs.{buildPlatform,hostPlatform} write only" 2025-02-05 22:06:04 +00:00