2
0
Fork 0

WiP! tor test

This commit is contained in:
Ehmry - 2020-12-18 14:46:17 +01:00
parent d785607fb1
commit 90369c1963
2 changed files with 34 additions and 0 deletions

View File

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

33
tests/tor.nix Normal file
View File

@ -0,0 +1,33 @@
{
name = "tor";
machine = { config, pkgs, ... }: {
imports = [ ../nixos-modules/hardware.nix ../nixos-modules/systemd.nix ];
services.tor = {
enable = true;
client.enable = false;
extraConfig = ''
Log [general,net,config,fs]debug stdout
MaxMemInQueues 64 MBytes
'';
relay = {
enable = true;
contactInfo = "genodepkgs-junk@spam.works";
port = 80;
role = "relay";
bridgeTransports = [ ];
};
};
systemd.services.tor.genode = {
enable = true;
interface = "eth1";
ramQuota = 96;
extraVfs = pkgs.writeText "tor.vfs.dhall" ''
let Genode = env:DHALL_GENODE
let VFS = Genode.VFS
in [ VFS.dir "var" [ VFS.dir "lib" [ VFS.leaf "ram" ] ] ]
'';
};
};
}