i am trying to set aerc to use w3m with icat to hsow images with inline? is this even possible and if so how i am failing and cant find solution
programs.aerc = {
enable = true;
extraConfig = ''
[general]
unsafe-accounts-conf = true
exec-on-new-email = ${pkgs.libnotify}/bin/notify-send -a "aerc" "New Email" "From: %s"
[ui]
index-columns = date<=,name<25,subject<*
index-format = %D %n %s
timestamp-format = 2006-01-02
render-account-tabs = true
border-char-vertical = "│"
border-char-horizontal = "─"
[viewer]
pager = less -R
alternatives = text/html,text/plain
show-headers = false
header-layout = From,Subject,Date
parse-http-links = true
[filters]
# Use a clean text-only filter for the internal viewer (avoids broken images)
text/html = ${pkgs.w3m}/bin/w3m -T text/html -I UTF-8 -O UTF-8 -dump -cols $(tput cols)
text/calendar = sed -n 's/^SUMMARY://p' | head -n 1
[openers]
# This is where the magic happens for images:
# We tell w3m to open in "interactive" mode specifically for Kitty
text/html = ${pkgs.w3m}/bin/w3m -T text/html -o display_image=1 -o inline_img_protocol=4
image/* = ${pkgs.kitty}/bin/kitty +kitten icat
# Optional: keep firefox as an alternative if you want
# text/html = firefox
[compose]
editor = nvim
header-layout = To,Cc,Subject
'';
};