{ config, lib, ... }: let cfg = config.sils.iamb; in { options = { sils.iamb.enable = lib.mkEnableOption "iamb, a matrix tui client"; }; config = lib.mkIf cfg.enable { programs.iamb = { enable = true; settings = { profiles = { ljs = { user_id = "@sils:linksjugend-solid.de"; url = "https://matrix.bak-it.de"; }; vhack = { user_id = "@sils:vhack.eu"; url = "https://matrix.vhack.eu"; }; }; settings = { notifications.enabled = true; image_preview.protocol = { type = "kitty"; size = { height = 10; width = 66; }; }; }; }; }; }; }