From 81fb420457dc3bddd47a36a810e380b60b2fec53 Mon Sep 17 00:00:00 2001 From: Robert Helgesson Date: Sun, 14 Jan 2018 11:11:36 +0100 Subject: [PATCH] home-manager: switch NIX_PATH order This new order allows overriding the home-manager path from the command line using `home-manager -I home-manager=/a/b/c`. --- home-manager/home-manager | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/home-manager/home-manager b/home-manager/home-manager index 3a4bbee4..63af9687 100644 --- a/home-manager/home-manager +++ b/home-manager/home-manager @@ -48,7 +48,7 @@ function setHomeManagerNixPath() { "${XDG_CONFIG_HOME:-$HOME/.config}/nixpkgs/home-manager" \ "$HOME/.nixpkgs/home-manager" ; do if [[ -e "$path" || "$path" =~ ^https?:// ]] ; then - export NIX_PATH="$NIX_PATH${NIX_PATH:+:}home-manager=$path" + export NIX_PATH="home-manager=$path${NIX_PATH:+:}$NIX_PATH" return fi done