cli: use nixpkgs in nix shell in pure mode
This avoids nixpkgs config and overlay provided by the user. Also enables caching in nix.
This commit is contained in:
@@ -39,10 +39,8 @@ def test_ssh_no_pass(fp: pytest_subprocess.fake_process.FakeProcess) -> None:
|
||||
cmd: list[Union[str, utils.Any]] = [
|
||||
"nix",
|
||||
"shell",
|
||||
"-f",
|
||||
"/mocked-nixpkgs",
|
||||
"tor",
|
||||
"openssh",
|
||||
"path:/mocked-nixpkgs#tor",
|
||||
"path:/mocked-nixpkgs#openssh",
|
||||
"-c",
|
||||
"torify",
|
||||
"ssh",
|
||||
@@ -68,11 +66,9 @@ def test_ssh_with_pass(fp: pytest_subprocess.fake_process.FakeProcess) -> None:
|
||||
cmd: list[Union[str, utils.Any]] = [
|
||||
"nix",
|
||||
"shell",
|
||||
"-f",
|
||||
"/mocked-nixpkgs",
|
||||
"tor",
|
||||
"openssh",
|
||||
"sshpass",
|
||||
"path:/mocked-nixpkgs#tor",
|
||||
"path:/mocked-nixpkgs#openssh",
|
||||
"path:/mocked-nixpkgs#sshpass",
|
||||
"-c",
|
||||
"torify",
|
||||
"sshpass",
|
||||
|
||||
Reference in New Issue
Block a user