fork/home-manager

git clone https://git.julia.blue/fork/home-manager

Gabriel Volpenheko: add module6ec6b2e3

master
2.2 KiB84 linesraw
1{ pkgs, ... }:
2
3let
4  configDir = if pkgs.stdenv.isDarwin then
5    "home-files/Library/Application Support"
6  else
7    "home-files/.config";
8in {
9  programs.nheko = {
10    enable = true;
11
12    settings = {
13      general = { disableCertificateValidation = false; };
14
15      auth = {
16        accessToken = "MY_ACCESS_TOKEN";
17        deviceId = "MY_DEVICE";
18        homeServer = "https://matrix-client.matrix.org:443";
19        userId = "@@user:matrix.org";
20      };
21
22      sidebar = { width = 416; };
23
24      settings = { scaleFactor = 0.7; };
25
26      user = {
27        alertOnNotification = true;
28        animateImagesOnHover = false;
29        automaticallyShareKeysWithTrustedUsers = false;
30        avatarCircles = true;
31        bubblesEnabled = false;
32        decryptSidebar = true;
33        desktopNotifications = true;
34        emojiFontFamily = "Noto Emoji";
35        exposeDbusApi = false;
36        fontFamily = "JetBrainsMonoMedium Nerd Font Mono";
37        fontSize = 9;
38        groupView = true;
39        markdownEnabled = true;
40        minorEvents = false;
41        mobileMode = false;
42        mutedTags = "global";
43        onlineKeyBackup = false;
44        onlyShareKeysWithVerifiedUsers = false;
45        openImageExternal = false;
46        openVideoExternal = false;
47        presence = "AutomaticPresence";
48        privacyScreen = false;
49        privacyScreenTimeout = 0;
50        readReceipts = true;
51        ringtone = "Mute";
52        shareKeysWithTrustedUsers = true;
53        smallAvatarsEnabled = false;
54        "sidebar\\communityListWidth" = 40;
55        "sidebar\\roomListWidth" = 308;
56        sortByUnread = true;
57        spaceNotifications = true;
58        theme = "dark";
59        "timeline\\buttons" = true;
60        "timeline\\enlargeEmojiOnlyMsg" = true;
61        "timeline\\maxWidth" = 0;
62        "timeline\\messageHoverHighlight" = false;
63        typingNotifications = true;
64        useIdenticon = true;
65        useStunServer = false;
66        "window\\startInTray" = false;
67        "window\\tray" = true;
68      };
69
70      window = {
71        height = 482;
72        width = 950;
73      };
74    };
75  };
76
77  test.stubs.nheko = { };
78
79  nmt.script = ''
80    assertFileContent \
81      "${configDir}/nheko/nheko.conf" \
82      ${./nheko-example-settings-expected-config.ini}
83  '';
84}