Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 0 additions & 10 deletions docs/installation.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -58,16 +58,6 @@ and if you follow a Nixpkgs version 22.11 channel you can run
$ nix-channel --add https://github.com/nix-community/home-manager/archive/release-22.11.tar.gz home-manager
$ nix-channel --update
----
+
On non-NixOS, you may have to add
+
[source,bash]
export NIX_PATH=$HOME/.nix-defexpr/channels:/nix/var/nix/profiles/per-user/root/channels${NIX_PATH:+:$NIX_PATH}
+
to your shell (see https://github.com/NixOS/nix/issues/2033[nix#2033]
and
https://discourse.nixos.org/t/where-is-nix-path-supposed-to-be-set/16434/8[this
reply on the Nix Discourse]).

3. Run the Home Manager installation command and create the first Home
Manager generation:
Expand Down
7 changes: 3 additions & 4 deletions home-manager/home-manager
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,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="home-manager=$path${NIX_PATH:+:}$NIX_PATH"
EXTRA_NIX_PATH+=("home-manager=$path")
return
fi
done
Expand Down Expand Up @@ -130,7 +130,6 @@ function doInspectOption() {
exit 1
fi
setConfigFile
setHomeManagerNixPath

local extraArgs=("$@")

Expand Down Expand Up @@ -170,7 +169,6 @@ function doInstantiate() {
exit 1
fi
setConfigFile
setHomeManagerNixPath

local extraArgs=()

Expand All @@ -192,7 +190,6 @@ function doInstantiate() {

function doBuildAttr() {
setConfigFile
setHomeManagerNixPath

local extraArgs=("$@")

Expand Down Expand Up @@ -602,6 +599,8 @@ COMMAND=""
COMMAND_ARGS=()
FLAKE_ARG=""

setHomeManagerNixPath

while [[ $# -gt 0 ]]; do
opt="$1"
shift
Expand Down