diff options
author | ene <ene@sils.li> | 2023-02-18 22:56:05 +0100 |
---|---|---|
committer | ene <ene@sils.li> | 2023-02-18 22:57:35 +0100 |
commit | cf39af1d421e8b1311c0474436e57845dfdf6034 (patch) | |
tree | 5471cff4515bab81d8801f956ae7a5307a3d9d14 /home-manager | |
parent | Style(home-manager): Format with alejandra (diff) | |
download | nixos-config-cf39af1d421e8b1311c0474436e57845dfdf6034.tar.gz nixos-config-cf39af1d421e8b1311c0474436e57845dfdf6034.zip |
Feat: Move nheko from system to user packages
Diffstat (limited to 'home-manager')
-rw-r--r-- | home-manager/config/nheko/default.nix | 68 | ||||
-rw-r--r-- | home-manager/packages/default.nix | 2 |
2 files changed, 69 insertions, 1 deletions
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 + diff --git a/home-manager/packages/default.nix b/home-manager/packages/default.nix index 0e42397d..a0a21a51 100644 --- a/home-manager/packages/default.nix +++ b/home-manager/packages/default.nix @@ -31,7 +31,7 @@ Social = [ mumble # voice chat software (client) - nheko # Matrix Desktop client + #nheko # Matrix Desktop client ]; Misc = [ |