From 0a5754541bb01e96021ca7ee74f1256a8ee68bc4 Mon Sep 17 00:00:00 2001 From: tdback Date: Sat, 21 Dec 2024 15:32:13 -0500 Subject: initial commit to self-hosted git --- users/tdback/modules/irc/default.nix | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 users/tdback/modules/irc/default.nix (limited to 'users/tdback/modules/irc') diff --git a/users/tdback/modules/irc/default.nix b/users/tdback/modules/irc/default.nix new file mode 100644 index 0000000..bc96909 --- /dev/null +++ b/users/tdback/modules/irc/default.nix @@ -0,0 +1,30 @@ +{ ... }: +let + user = "tdback"; +in +{ + programs.irssi = { + enable = true; + + extraConfig = '' + settings = { core = { real_name = "${user}"; }; }; + ''; + + networks = { + liberachat = { + nick = "${user}"; + saslExternal = true; + server = { + address = "irc.libera.chat"; + port = 6697; + autoConnect = true; + ssl = { + enable = true; + verify = true; + certificateFile = "/home/${user}/.irssi/certs/libera.pem"; + }; + }; + }; + }; + }; +} -- cgit v1.2.3