2
0
Fork 0

WiP! tor test

This commit is contained in:
Emery Hemingway 2020-12-03 12:53:10 +01:00
parent 6c2ea4902d
commit 478ee49688
1 changed files with 14 additions and 1 deletions

View File

@ -1,12 +1,17 @@
{
name = "tor";
machine = { pkgs, ... }: {
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 = [ ];
@ -15,6 +20,14 @@
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" ] ] ]
'';
};
};
}