mirror of
https://github.com/nix-community/home-manager
synced 2024-11-26 14:40:29 +00:00
parent
30d2dc8d68
commit
e63c30fe97
1 changed files with 5 additions and 0 deletions
|
@ -155,6 +155,11 @@ function setHomeManagerNixPath() {
|
||||||
|
|
||||||
# Sets some useful Home Manager related paths as global read-only variables.
|
# Sets some useful Home Manager related paths as global read-only variables.
|
||||||
function setHomeManagerPathVariables() {
|
function setHomeManagerPathVariables() {
|
||||||
|
# If called twice then just exit early.
|
||||||
|
if [[ -v HM_DATA_HOME ]]; then
|
||||||
|
return
|
||||||
|
fi
|
||||||
|
|
||||||
declare -r globalNixStateDir="${NIX_STATE_DIR:-/nix/var/nix}"
|
declare -r globalNixStateDir="${NIX_STATE_DIR:-/nix/var/nix}"
|
||||||
declare -r globalProfilesDir="$globalNixStateDir/profiles/per-user/$USER"
|
declare -r globalProfilesDir="$globalNixStateDir/profiles/per-user/$USER"
|
||||||
declare -r globalGcrootsDir="$globalNixStateDir/gcroots/per-user/$USER"
|
declare -r globalGcrootsDir="$globalNixStateDir/gcroots/per-user/$USER"
|
||||||
|
|
Loading…
Reference in a new issue