From 1fa809f7830d5febc8638cd6edc1dfab293df4af Mon Sep 17 00:00:00 2001 From: Nicolas Berbiche Date: Thu, 3 Feb 2022 15:24:31 -0500 Subject: [PATCH] darwin: add Nix package to activation $PATH The fix for https://github.com/nix-community/home-manager/issues/2178 did not apply the patch to nix-darwin too. See: https://github.com/nix-community/home-manager/issues/2178#issuecomment-1029015498 --- nix-darwin/default.nix | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/nix-darwin/default.nix b/nix-darwin/default.nix index 8d354a1d5..010d4f574 100644 --- a/nix-darwin/default.nix +++ b/nix-darwin/default.nix @@ -29,6 +29,10 @@ let home.username = config.users.users.${name}.name; home.homeDirectory = config.users.users.${name}.home; + + # Make activation script use same version of Nix as system as a whole. + # This avoids problems with Nix not being in PATH. + home.extraActivationPath = [ config.nix.package ]; }; }) ] ++ cfg.sharedModules;