~ruther/nixos-config

ref: b0f15be81731ba715c23ab0a64a5b7cefebf00c3 nixos-config/home/modules/profiles/matrix.nix -rw-r--r-- 873 bytes
b0f15be8 — Frantisek Bohacek feat: add pass-otp 8 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
{ 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 = {
            "<C-h>" = "<C-W>v50<C-W>><C-W>l:dms<CR><C-W>h";
            "V" = "<C-w>m";
          };
        };
      };
    };

    home-config.startup.apps = [ (lib.getExe pkgs.element-desktop) ];
  };
}
Do not follow this link