1
0
Fork 0
mirror of https://github.com/LnL7/nix-darwin.git synced 2025-03-13 20:30:02 +00:00

darwin: include nix in PATH

This makes rollbacks more reliable, previously you had to fix your PATH
before calling darwin-rebuild. This works now:

$ /nix/var/nix/profiles/system-866-link/sw/bin/darwin-rebuild switch -G 866
This commit is contained in:
Daiderd Jordan 2018-01-14 22:24:36 +01:00
parent 29f9fb52b3
commit 86fe053806
No known key found for this signature in database
GPG key ID: D02435D05B810C96

View file

@ -22,7 +22,7 @@ let
{
inherit (config.system) profile;
inherit (stdenv) shell;
path = "${pkgs.coreutils}/bin:${config.environment.systemPath}";
path = "${pkgs.coreutils}/bin:${config.nix.package}/bin:${config.environment.systemPath}";
}
../../pkgs/nix-tools/darwin-rebuild.sh;