{ lib, config, pkgs, ... }: let cfg = config.my.home.matrix-client; in { options.my.home.matrix-client = with lib; { enable = mkEnableOption "matrix client configuration"; }; # https://gitlab.gnome.org/GNOME/fractal # fractal-next is a GTK4 client for matrix, using the # matrix-rust-sdk. I used to use element, an electron application, # and it had a number of issues (freeze, crash, heavy, ...). config = lib.mkIf cfg.enable { home.packages = with pkgs; [ fractal-next ]; }; }