Skip to content

Commit

Permalink
Merge pull request NixOS#6980 from virusdave/patch-1
Browse files Browse the repository at this point in the history
Set `HOME` var to `root`'s home when running `nix-store` as `root`
  • Loading branch information
thufschmitt authored and Minion3665 committed Feb 23, 2023
2 parents 6199fb1 + 17e1b8f commit 058f55a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/install-multi-user.sh
Original file line number Diff line number Diff line change
Expand Up @@ -810,7 +810,7 @@ EOF
fi

_sudo "to load data for the first time in to the Nix Database" \
"$NIX_INSTALLED_NIX/bin/nix-store" --load-db < ./.reginfo
HOME="$ROOT_HOME" "$NIX_INSTALLED_NIX/bin/nix-store" --load-db < ./.reginfo

echo " Just finished getting the nix database ready."
)
Expand Down

0 comments on commit 058f55a

Please sign in to comment.