2019-12-20 05:54:26 +01:00
|
|
|
{ pkgs, ... }: {
|
2020-01-07 05:47:25 +01:00
|
|
|
|
2019-10-24 02:20:38 +02:00
|
|
|
services.tor = {
|
2020-01-07 05:47:25 +01:00
|
|
|
enable = false;
|
|
|
|
client.enable = false;
|
2019-12-20 05:54:26 +01:00
|
|
|
hiddenServices.liveos.map = [{ port = 1337; }];
|
2019-10-24 02:20:38 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
environment.systemPackages = [
|
|
|
|
(pkgs.writeShellScriptBin "remote-install-start-service" ''
|
|
|
|
echo "starting announcment server to receive remote-install iso onion id"
|
|
|
|
${pkgs.nmap}/bin/ncat -k -l -p 1337
|
|
|
|
'')
|
|
|
|
(pkgs.writeShellScriptBin "remote-install-get-hiddenReceiver" ''
|
|
|
|
sudo cat /var/lib/tor/onion/liveos/hostname
|
|
|
|
'')
|
|
|
|
];
|
|
|
|
}
|