2
0
Fork 0

WiP! tor test

This commit is contained in:
Ehmry - 2020-12-02 17:30:10 +01:00
parent df948cc6d8
commit bf4a673c98
3 changed files with 27 additions and 0 deletions

View File

@ -135,6 +135,12 @@ in {
solo5-tools = callPackage ./solo5-tools { };
tor = overrideAttrsHost (attrs: {
configureFlags = attrs.configureFlags or [ ]
++ [ "--disable-tool-name-check" ];
postPatch = null; # Avoid torsocks patching
}) tor;
zlib = overrideAttrsHost (attrs: {
postInstall = attrs.postInstall or "" + ''
pushd ''${!outputLib}/lib

View File

@ -12,6 +12,7 @@ let
./hello.nix
./log.nix
./networking.nix
./tor.nix
./vmm_x86.nix
./x86.nix
];

20
tests/tor.nix Normal file
View File

@ -0,0 +1,20 @@
{
name = "tor";
machine = { pkgs, ... }: {
imports = [ ../nixos-modules/hardware.nix ../nixos-modules/systemd.nix ];
services.tor = {
enable = true;
client.enable = false;
relay = {
enable = true;
port = 80;
role = "relay";
bridgeTransports = [ ];
};
};
systemd.services.tor.genode = {
enable = true;
interface = "eth1";
};
};
}