diff --git a/home-manager/default.nix b/home-manager/default.nix index a037c023..f2b99495 100644 --- a/home-manager/default.nix +++ b/home-manager/default.nix @@ -28,6 +28,7 @@ pkgs.stdenv.mkDerivation { substituteInPlace $out/bin/home-manager \ --subst-var-by bash "${pkgs.bash}" \ + --subst-var-by coreutils "${pkgs.coreutils}" \ --subst-var-by MODULES_PATH '${modulesPath}' \ --subst-var-by HOME_MANAGER_EXPR_PATH "${homeManagerExpr}" ''; diff --git a/home-manager/home-manager b/home-manager/home-manager index e0beb761..f8fe7131 100644 --- a/home-manager/home-manager +++ b/home-manager/home-manager @@ -1,5 +1,10 @@ #!@bash@/bin/bash +# This code explicitly requires GNU Core Utilities and we therefore +# need to ensure they are prioritized over any other similarly named +# tools on the system. +PATH=@coreutils@/bin:$PATH + set -euo pipefail function doBuild() {