~ruther/nixos-config

ref: 6904cf1761334d033556f106c82d79b48e6657f4 nixos-config/home/modules/profiles/matrix.nix -rw-r--r-- 865 bytes
6904cf17 — Frantisek Bohacek refactor: modularize the configuration 1 year, 1 day 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) ];
  };
}
Do not follow this link