{ pkgs, lib, config, ... }: let inherit (config) networking; inherit (config.services) biboumi; inherit (config.users) users; in { networking.nftables.ruleset = '' add rule inet filter net2fw tcp dport ${toString biboumi.settings.identd_port} counter accept comment "identd" add rule inet filter fw2net meta skuid ${users.biboumi.name} meta l4proto tcp counter accept comment "Biboumi" ''; users.users.biboumi.isSystemUser = true; systemd.services.biboumi.after = ["prosody.service"]; services.biboumi = { enable = true; settings = { hostname = "biboumi.${networking.domain}"; password = "useless-secret-on-loopback"; xmpp_server_ip = "127.0.0.1"; port = 5347; admin = [ "julm@${networking.domain}" ]; #fixed_irc_server = ""; persistent_by_default = true; realname_customization = true; realname_from_jid = false; log_level = 1; }; }; }