WiP! tor test
This commit is contained in:
parent
df948cc6d8
commit
bf4a673c98
|
@ -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
|
||||
|
|
|
@ -12,6 +12,7 @@ let
|
|||
./hello.nix
|
||||
./log.nix
|
||||
./networking.nix
|
||||
./tor.nix
|
||||
./vmm_x86.nix
|
||||
./x86.nix
|
||||
];
|
||||
|
|
|
@ -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";
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Reference in New Issue