add HOME for nix-env calls

This commit is contained in:
Graham Christensen 2017-11-18 15:53:02 -05:00
parent a6e29ab24f
commit b0085eed3f
No known key found for this signature in database
GPG key ID: ACA1C1D120C83D5C

View file

@ -53,6 +53,7 @@ impl Nix {
.current_dir(nixpkgs)
.stdout(Stdio::from(stdout))
.stderr(Stdio::from(stderr))
.env("HOME", "/homeless-shelter")
.env("NIX_PATH", nixpath)
.env("NIX_REMOTE", &self.remote)
.args(&["--option", "restrict-eval", "true"])