aboutsummaryrefslogtreecommitdiffstats
path: root/modules/programs
diff options
context:
space:
mode:
authorArpit Chakladar <arpitchakladar+git@gmail.com>2026-07-11 13:03:07 +0530
committerArpit Chakladar <arpitchakladar+git@gmail.com>2026-07-11 13:03:07 +0530
commit83e0d9883b10096a4cea5f51fea0590d4be19ebe (patch)
tree4c722eb3f7a8a303a779807a330741d4be4ccb7e /modules/programs
parent1c2206b7f4aeab02a93e63f49727b314e438c895 (diff)
downloadhome-manager-config-83e0d9883b10096a4cea5f51fea0590d4be19ebe.tar.gz
home-manager-config-83e0d9883b10096a4cea5f51fea0590d4be19ebe.zip
feat(neomutt): added desktop entry for neomutt with kitty terminal
Diffstat (limited to 'modules/programs')
-rw-r--r--modules/programs/neomutt/assertions.nix7
-rw-r--r--modules/programs/neomutt/default.nix16
2 files changed, 23 insertions, 0 deletions
diff --git a/modules/programs/neomutt/assertions.nix b/modules/programs/neomutt/assertions.nix
index 1e4ae27..989d273 100644
--- a/modules/programs/neomutt/assertions.nix
+++ b/modules/programs/neomutt/assertions.nix
@@ -23,5 +23,12 @@
neomutt requires the email module (mbsync + notmuch) to be enabled.
'';
}
+ {
+ assertion = !config.programs.neomutt.enable || config.programs.kitty.enable;
+ message = ''
+ programs.neomutt is enabled but programs.kitty.enable is not.
+ neomutt's desktop entry requires kitty as the terminal launcher. Please enable programs.kitty.
+ '';
+ }
];
}
diff --git a/modules/programs/neomutt/default.nix b/modules/programs/neomutt/default.nix
index 212fefc..818e921 100644
--- a/modules/programs/neomutt/default.nix
+++ b/modules/programs/neomutt/default.nix
@@ -5,6 +5,21 @@
pkgs,
...
}:
+let
+ neomuttDesktopItem = pkgs.makeDesktopItem {
+ name = "neomutt";
+ desktopName = "NeoMutt";
+ exec = "${lib.getExe config.programs.kitty.package} -e ${lib.getExe config.programs.neomutt.package}";
+ icon = "kitty";
+ categories = [
+ "Network"
+ "Email"
+ ];
+ comment = "Terminal email client";
+ terminal = false;
+ type = "Application";
+ };
+in
{
imports = [
./assertions.nix
@@ -18,6 +33,7 @@
home.packages = [
pkgs.urlscan
pkgs.w3m
+ neomuttDesktopItem
];
xdg.configFile."neomutt/mailcap".text = ''