From e7b60899bcffd63576de1a5ca1bf140757aa1fa1 Mon Sep 17 00:00:00 2001 From: Franck Cuny Date: Sun, 15 Jan 2023 12:00:25 -0800 Subject: ref(home/matrix): replace element by fractal fractal(-next) is a client for matrix. It's GTK4 native and uses rust. While not much nicer looking than element, it's not an electron app, which I prefer (electron is slow, and element would freeze/crash from time to time). I renamed the module from element to matrix-client, in case I switch to something else in the future (or if there are additional configurations). --- home/matrix-client/default.nix | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 home/matrix-client/default.nix (limited to 'home/matrix-client/default.nix') diff --git a/home/matrix-client/default.nix b/home/matrix-client/default.nix new file mode 100644 index 0000000..a5a420f --- /dev/null +++ b/home/matrix-client/default.nix @@ -0,0 +1,15 @@ +{ 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 ]; }; +} -- cgit v1.2.3