hidden-ssh: add message option

This commit is contained in:
lassulus 2020-04-11 17:06:24 +02:00
parent 7b72fc3de2
commit 0cb8ab061a

View File

@ -19,6 +19,10 @@ let
type = types.str;
default = "irc.freenode.org";
};
message = mkOption {
type = types.str;
default = "SSH Hidden Service at ";
};
};
imp = let
@ -50,7 +54,7 @@ let
${pkgs.irc-announce}/bin/irc-announce \
${cfg.server} 6667 ${config.krebs.build.host.name}-ssh \
\${cfg.channel} \
"SSH Hidden Service at $(cat ${hiddenServiceDir}/hostname)"
"${cfg.message}$(cat ${hiddenServiceDir}/hostname)"
'';
PrivateTmp = "true";
User = "tor";