about summary refs log tree commit diff stats
path: root/home-manager/config/nheko/default.nix
blob: b574cbafb470d5097f7926311322be1c0475dcf0 (plain) (blame)
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
{
  config,
  pkgs,
  lib,
  agenix,
  ...
}: {
  programs.nheko = {
    enable = true;
    settings = {
      general.disable_certificate_validation = false;

      auth = {
        # TODO This saves the token world readable in the store, but I don't see a better option yet
        access_token = builtins.readFile (lib.replaceStrings ["\n"] [""] agenix.secrets.nheko.path);
        device_id = "BAEZYLUEKE";
        home_server = "https://matrix.sils.li:443";
        user_id = "@@ene:sils.li";
      };

      settings.scale_factor = 1.0;

      user = {
        alert_on_notification = true;
        animate_images_on_hover = true;
        automatically_share_keys_with_trusted_users = false;
        avatar_circles = true;
        bubbles_enabled = false;
        decrypt_notificatons = true;
        decrypt_sidebar = true;
        desktop_notifications = true;
        emoji_font_family = "emoji";
        expose_dbus_api = false;
        fancy_effects = true;

        font_family = "Source Code Pro";
        font_size = 9;

        group_view = true;
        invert_enter_key = false;
        markdown_enabled = true;
        minor_events = true;
        mobile_mode = false;
        muted_tags = "global";
        online_key_backup = true;
        only_share_keys_with_verified_users = false;
        open_image_external = false;
        open_video_external = false;
        presence = "AutomaticPresence";
        privacy_screen = true;
        privacy_screen_timeout = 0;
        read_receipts = true;
        small_avatars_enabled = false;
        sort_by_unread = true;
        space_notifications = true;
        theme = "dark";
        "timeline\\buttons" = true;
        "timeline\\enlarge_emoji_only_msg" = false;
        "timeline\\message_hover_highlight" = true;
        typing_notifications = true;
        use_identicon = true;
        use_stun_server = false;
      };
    };
  };
}
# vim: ts=2