Browse Source

stop running tor everywhere

master
Yorick van Pelt 1 year ago
parent
commit
6922a4e3a0
Signed by: yorick <yorick@yorickvanpelt.nl> GPG Key ID: D8D3CC6D951384DE
2 changed files with 1 additions and 18 deletions
  1. +1
    -0
      modules/muflax-blog.nix
  2. +0
    -18
      roles/default.nix

+ 1
- 0
modules/muflax-blog.nix View File

@@ -49,6 +49,7 @@ in with lib; {
}
'') ["daily" "gospel" "blog"]);
};
services.tor.enable = true;
services.tor.hiddenServices.muflax-blog.map = [{
port = 80; toPort = cfg.web-server.port; }];
services.tor.service-keys.muflax-blog = cfg.hidden-service.private_key;


+ 0
- 18
roles/default.nix View File

@@ -49,24 +49,6 @@ in
challengeResponseAuthentication = false;
};

services.tor = {
enable = true;
client.enable = true;
# ssh hidden service
hiddenServices.ssh.map = [{ port = 22; }];
service-keys.ssh = "/root/keys/ssh.${machine}.key";
};
deployment.keyys = [ (<yori-nix/keys> + "/ssh.${machine}.key") ];

programs.ssh.extraConfig = ''
Host *.onion
ProxyCommand nc -xlocalhost:9050 -X5 %h %p
'' +
(with lib; (flip concatMapStrings) (filter (hasPrefix "ssh.") (attrNames secrets.tor_hostnames)) (name: ''
Host ${removePrefix "ssh." name}.onion
hostname ${secrets.tor_hostnames.${name}}
''
));

environment.systemPackages = with pkgs; [
# v important.


Loading…
Cancel
Save