feat(ops/nevsky): run owothia & irccat on nevsky
Change-Id: I9234a77967634c9b472151ea5ac7ef4e76c2d7e6 Reviewed-on: https://cl.tvl.fyi/c/depot/+/13073 Tested-by: BuildkiteCI Reviewed-by: sterni <sternenseemann@systemli.org>
This commit is contained in:
parent
119df03a50
commit
749a01b681
1 changed files with 30 additions and 1 deletions
|
|
@ -8,7 +8,9 @@ in
|
||||||
imports = [
|
imports = [
|
||||||
(mod "builderball.nix")
|
(mod "builderball.nix")
|
||||||
(mod "harmonia.nix")
|
(mod "harmonia.nix")
|
||||||
|
(mod "irccat.nix")
|
||||||
(mod "known-hosts.nix")
|
(mod "known-hosts.nix")
|
||||||
|
(mod "owothia.nix")
|
||||||
(mod "tvl-buildkite.nix")
|
(mod "tvl-buildkite.nix")
|
||||||
(mod "tvl-users.nix")
|
(mod "tvl-users.nix")
|
||||||
(mod "www/cache.tvl.fyi.nix")
|
(mod "www/cache.tvl.fyi.nix")
|
||||||
|
|
@ -96,6 +98,8 @@ in
|
||||||
secretFile = name: depot.ops.secrets."${name}.age";
|
secretFile = name: depot.ops.secrets."${name}.age";
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
|
irccat.file = secretFile "irccat";
|
||||||
|
owothia.file = secretFile "owothia";
|
||||||
wg-privkey.file = depot.ops.secrets."wg-nevsky.age";
|
wg-privkey.file = depot.ops.secrets."wg-nevsky.age";
|
||||||
|
|
||||||
nix-cache-priv = {
|
nix-cache-priv = {
|
||||||
|
|
@ -259,7 +263,6 @@ in
|
||||||
|
|
||||||
builderball.enable = true;
|
builderball.enable = true;
|
||||||
|
|
||||||
|
|
||||||
# Automatically collect garbage from the Nix store.
|
# Automatically collect garbage from the Nix store.
|
||||||
automatic-gc = {
|
automatic-gc = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|
@ -274,6 +277,32 @@ in
|
||||||
enable = true;
|
enable = true;
|
||||||
agentCount = 16;
|
agentCount = 16;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
# make our channel more owo
|
||||||
|
owothia = {
|
||||||
|
enable = true;
|
||||||
|
ircServer = "localhost";
|
||||||
|
ircPort = config.services.znc.config.Listener.l.Port;
|
||||||
|
};
|
||||||
|
|
||||||
|
# Run irccat to forward messages to IRC
|
||||||
|
irccat = {
|
||||||
|
enable = true;
|
||||||
|
config = {
|
||||||
|
tcp.listen = ":4722"; # "ircc"
|
||||||
|
irc = {
|
||||||
|
server = "localhost:${toString config.services.znc.config.Listener.l.Port}";
|
||||||
|
tls = false;
|
||||||
|
nick = "tvlbot";
|
||||||
|
# Note: irccat means 'ident' where it says 'realname', so
|
||||||
|
# this is critical for connecting to ZNC.
|
||||||
|
realname = "tvlbot";
|
||||||
|
channels = [
|
||||||
|
"#tvl"
|
||||||
|
];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
# Start a ZNC instance which bounces for tvlbot and owothia.
|
# Start a ZNC instance which bounces for tvlbot and owothia.
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue