Commit de7ea35

HPCesia <me@hpcesia.com>
2026-09-24 08:03:22
thunderbird: use nixpkgs version instead of flatpak
1 parent cfda682
Changed files (2)
modules
desktop
users
hpcesia
modules/desktop/app/thunderbird.nix
@@ -0,0 +1,18 @@
+{
+  den.aspects.desktop.app.thunderbird = {
+    persistHome = {config, ...}: {
+      directories = [
+        "${config.xdg.config.directory}/thunderbird"
+      ];
+    };
+
+    hjem = {pkgs, ...}: {
+      packages = [pkgs.thunderbird-bin];
+
+      xdg.mime-apps.default-applications = {
+        "x-scheme-handler/mailto" = ["thunderbird.desktop"];
+        "x-scheme-handler/net.thunderbird" = ["thunderbird.desktop"];
+      };
+    };
+  };
+}
modules/users/hpcesia/desktop.nix
@@ -11,8 +11,6 @@
             "com.qq.QQ"
             "com.tencent.WeChat"
             "com.dingtalk.DingTalk"
-
-            "org.mozilla.thunderbird"
           ];
           overrides = {
             "com.tencent.WeChat" = {
@@ -22,13 +20,6 @@
                 QT_IM_MODULE = "fcitx";
               };
             };
-
-            "org.mozilla.thunderbird" = {
-              Context.sockets = [
-                "gpg-agent" # Expose GPG agent
-                "pcsc" # Expose smart cards
-              ];
-            };
           };
         };
       };
@@ -53,6 +44,7 @@
         desktop.app.obs-studio
         desktop.app.picard
         desktop.app.term.foot
+        desktop.app.thunderbird
         desktop.flatpak
         desktop.ime.fcitx5
         desktop.noctalia