but you can put the nix expressions anywhere you like, e.g. $ export NIX_PATH="nixpkgs=$HOME/src/nixpkgs" $ nix build nixpkgs.emacs will build using the nixpkgs tree from your home dir