From cf39af1d421e8b1311c0474436e57845dfdf6034 Mon Sep 17 00:00:00 2001 From: ene Date: Sat, 18 Feb 2023 22:56:05 +0100 Subject: Feat: Move nheko from system to user packages --- home-manager/config/nheko/default.nix | 68 +++++++++++++++++++++++++++++++++++ 1 file changed, 68 insertions(+) create mode 100644 home-manager/config/nheko/default.nix (limited to 'home-manager/config/nheko') diff --git a/home-manager/config/nheko/default.nix b/home-manager/config/nheko/default.nix new file mode 100644 index 00000000..b574cbaf --- /dev/null +++ b/home-manager/config/nheko/default.nix @@ -0,0 +1,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 + -- cgit 1.4.1