summaryrefslogtreecommitdiffstats
path: root/krebs/3modules
diff options
context:
space:
mode:
authorlassulus <lassulus@lassul.us>2020-04-11 17:06:24 +0200
committerlassulus <lassulus@lassul.us>2020-04-11 17:06:24 +0200
commit0cb8ab061a8aa5691e6fc78c8552c18ab035fe53 (patch)
treeee3e71b5037c891c75dfff99513ca7df4b01393f /krebs/3modules
parent7b72fc3de26431c0b739b9572984f5be768030b3 (diff)
hidden-ssh: add message option
Diffstat (limited to 'krebs/3modules')
-rw-r--r--krebs/3modules/hidden-ssh.nix6
1 files changed, 5 insertions, 1 deletions
diff --git a/krebs/3modules/hidden-ssh.nix b/krebs/3modules/hidden-ssh.nix
index 2d697e497..f497de451 100644
--- a/krebs/3modules/hidden-ssh.nix
+++ b/krebs/3modules/hidden-ssh.nix
@@ -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";