summary refs log tree commit diff stats
path: root/modules/hm
diff options
context:
space:
mode:
Diffstat (limited to 'modules/hm')
-rw-r--r--modules/hm/sils/default.nix1
-rw-r--r--modules/hm/sils/iamb.nix38
2 files changed, 39 insertions, 0 deletions
diff --git a/modules/hm/sils/default.nix b/modules/hm/sils/default.nix
index 1446d02..eacfc03 100644
--- a/modules/hm/sils/default.nix
+++ b/modules/hm/sils/default.nix
@@ -11,6 +11,7 @@
     ./git.nix
     ./hyfetch.nix
     ./hyprland.nix
+    ./iamb.nix
     ./jameica.nix
     ./kdeconnect.nix
     ./mail.nix
diff --git a/modules/hm/sils/iamb.nix b/modules/hm/sils/iamb.nix
new file mode 100644
index 0000000..2c6932a
--- /dev/null
+++ b/modules/hm/sils/iamb.nix
@@ -0,0 +1,38 @@
+{
+  config,
+  lib,
+  ...
+}: let
+  cfg = config.sils.iamb;
+in {
+  options = {
+    sils.iamb.enable = lib.mkEnableOption "iamb, a matrix tui client";
+  };
+  config = lib.mkIf cfg.enable {
+    programs.iamb = {
+      enable = true;
+      settings = {
+        profiles = {
+          ljs = {
+            user_id = "@sils:linksjugend-solid.de";
+            url = "https://matrix.bak-it.de";
+          };
+          vhack = {
+            user_id = "@sils:vhack.eu";
+            url = "https://matrix.vhack.eu";
+          };
+        };
+        settings = {
+          notifications.enabled = true;
+          image_preview.protocol = {
+            type = "kitty";
+            size = {
+              height = 10;
+              width = 66;
+            };
+          };
+        };
+      };
+    };
+  };
+}