ctucx.git: nixfiles

ctucx' nixfiles

commit 306895d81dcf51500aef7b4236e7edb119b0bcfe
parent e41d9da11c8fccf60759a1e660b027639226230e
Author: Leah (ctucx) <git@ctu.cx>
Date: Fri, 15 Nov 2024 17:45:21 +0100

configurations/linux/programs/communication: add some default settings for `Tuba`
1 file changed, 18 insertions(+), 6 deletions(-)
diff --git a/configurations/linux/programs/communication.nix b/configurations/linux/programs/communication.nix
@@ -1,4 +1,4 @@
-{ config, pkgs, lib, ... }:
+{ inputs, config, pkgs, lib, ... }:
 
 let
   cfg    = config.ctucxConfig.programs;

@@ -14,10 +14,22 @@ in {
   };
 
   config = {
-    home-manager.users.leah.home.packages = [
-      (lib.mkIf cfg.fractal.enable        pkgs.fractal)
-      (lib.mkIf cfg.tuba.enable           pkgs.tuba)
-      (lib.mkIf cfg.paper-plane.enable    pkgs.paper-plane)
-    ];
+    home-manager.users.leah = {
+      home.packages = [
+        (lib.mkIf cfg.fractal.enable        pkgs.fractal)
+        (lib.mkIf cfg.tuba.enable           pkgs.tuba)
+        (lib.mkIf cfg.paper-plane.enable    pkgs.paper-plane)
+      ];
+
+      dconf.settings = with inputs.home-manager.lib.hm.gvariant; {
+        "dev/geopjr/Tuba" = lib.mkIf cfg.tuba.enable {
+          work-in-background         = true;
+          dim-trivial-notifications  = true;
+          group-push-notifications   = true;
+          reply-to-old-post-reminder = false;
+          show-spoilers              = true;
+        };
+      };
+    };
   };
 }