getNixPath gets a value from a specified key (e.g. "nixpkgs")