diff options
author | Franck Cuny <franck@fcuny.net> | 2023-01-15 12:00:25 -0800 |
---|---|---|
committer | Franck Cuny <franck@fcuny.net> | 2023-01-15 12:05:48 -0800 |
commit | e7b60899bcffd63576de1a5ca1bf140757aa1fa1 (patch) | |
tree | af04ad94b0ae388fdec61a8604c0d915ca34d246 /home/matrix-client | |
parent | ref(home/python): use the default version (diff) | |
download | world-e7b60899bcffd63576de1a5ca1bf140757aa1fa1.tar.gz |
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).
Diffstat (limited to '')
-rw-r--r-- | home/matrix-client/default.nix | 15 |
1 files changed, 15 insertions, 0 deletions
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 ]; }; +} |