{ lib, config, inputs, pkgs, jail, ... }: let cfg = config.l.aerc; in { options.l.aerc.enable = lib.mkEnableOption "aerc mail"; config = lib.mkIf cfg.enable { home-manager.users.${config.l.home.username} = { programs.aerc = { enable = true; extraConfig = { general.unsafe-accounts-conf = true; filters = { "text/html" = "! html"; "text/plain" = "colorize"; "text/calendar" = "calendar"; "message/delivery-status" = "colorize"; "message/rfc822" = "colorize"; "image/*" = "! ${pkgs.libsixel}/bin/img2sixel"; }; }; }; }; }; }