aboutsummaryrefslogtreecommitdiffstats
path: root/modules/web/w3m/default.nix
diff options
context:
space:
mode:
authorArpit Chakladar <arpitchakladar+git@gmail.com>2026-07-26 12:25:13 +0530
committerArpit Chakladar <arpitchakladar+git@gmail.com>2026-07-26 12:25:13 +0530
commitd8d4727e9b6417948f21376e8293c755fa10c0f1 (patch)
tree94e385f2bcc9535bd867d1f861222249a7dbe25c /modules/web/w3m/default.nix
parent76e8ba8527b9300ba3b15f18dc6b683e56a9dc47 (diff)
downloadhome-manager-config-d8d4727e9b6417948f21376e8293c755fa10c0f1.tar.gz
home-manager-config-d8d4727e9b6417948f21376e8293c755fa10c0f1.zip
feat: using xdg.desktopEntries inplace of lib.makeDesktopItem
Diffstat (limited to 'modules/web/w3m/default.nix')
-rw-r--r--modules/web/w3m/default.nix22
1 files changed, 9 insertions, 13 deletions
diff --git a/modules/web/w3m/default.nix b/modules/web/w3m/default.nix
index 5316e04..00e8d2a 100644
--- a/modules/web/w3m/default.nix
+++ b/modules/web/w3m/default.nix
@@ -5,18 +5,6 @@
pkgs,
...
}:
-let
- w3mDesktopItem = pkgs.makeDesktopItem {
- name = "w3m";
- desktopName = "w3m";
- exec = "${lib.getExe config.terminal.kitty.package} --class w3m -e ${lib.getExe' config.web.w3m.package "w3m"}";
- icon = "kitty";
- categories = [ "Network" ];
- comment = "Text-based web browser";
- terminal = false;
- type = "Application";
- };
-in
{
imports = [
./assertions.nix
@@ -33,10 +21,18 @@ in
};
config = lib.mkIf config.web.w3m.enable {
+ xdg.desktopEntries."w3m" = {
+ name = "w3m";
+ exec = "${lib.getExe config.terminal.kitty.package} --class w3m -e ${lib.getExe' config.web.w3m.package "w3m"}";
+ icon = "kitty";
+ categories = [ "Network" ];
+ comment = "Text-based web browser";
+ terminal = false;
+ type = "Application";
+ };
programs.w3m.enable = true;
home.packages = [
config.web.w3m.package
- w3mDesktopItem
];
};
}