1 { lib, pkgs, config, ... }:
3 cfg = config.myServices.irc;
7 ircCerts = lib.mkOption {
8 description = "Default ircconfigurations for certificates as accepted by acme";
10 irc.enable = lib.mkOption {
11 type = lib.types.bool;
14 Whether to enable irc stuff.
19 config = lib.mkIf cfg.enable {
20 security.acme.certs."irc" = config.myServices.ircCerts // {
21 domain = "irc.immae.eu";
23 systemctl restart stunnel.service
27 networking.firewall.allowedTCPPorts = [ 6697 ];
28 services.bitlbee = with pkgs; {
30 authMode = "Registered";
49 cert = "${config.security.acme.certs.irc.directory}/full.pem";