{ config, lib, pkgs, ... }: { options = { profiles.matrix = { enable = lib.mkEnableOption "Enable matrix client"; }; }; config = lib.mkIf config.profiles.matrix.enable { home.packages = [ pkgs.element pkgs.cinny ]; programs.iamb = { enable = true; settings = { profiles = { "ditigal.xyz" = { user_id = "@ruther:ditigal.xyz"; }; }; settings = { username_display = "displayname"; image_preview = {}; sort.rooms = [ "favorite" "unread" "recent" "lowpriority" "name" ]; }; macros = { normal = { "" = "v50>l:dmsh"; "V" = "m"; }; }; }; }; home-config.startup.apps = [ (lib.getExe pkgs.element-desktop) ]; }; }