aboutsummaryrefslogtreecommitdiffstats
path: root/modules/web/w3m
diff options
context:
space:
mode:
authorArpit Chakladar <arpitchakladar+git@gmail.com>2026-07-26 23:28:11 +0530
committerArpit Chakladar <arpitchakladar+git@gmail.com>2026-07-26 23:28:11 +0530
commit6910400bb38bb69a9e81b932b01fa51802cb0c47 (patch)
treed291a7c6e18b9b669b9a405cad9cfc5ba10547ee /modules/web/w3m
parentb93a73ba98e94cbb971dce6554c7c55bce517c0e (diff)
downloadhome-manager-config-6910400bb38bb69a9e81b932b01fa51802cb0c47.tar.gz
home-manager-config-6910400bb38bb69a9e81b932b01fa51802cb0c47.zip
feat: replace w3m with chawan for HTML rendering and web browsing
- Create web.chawan module with enable/package options, kitty desktop entry, and programs.chawan.settings (buffer.images=true, display.image-mode=auto) - Update neomutt macros, mailcap, and assertions from w3m to chawan - Switch waybar window-rewrite and workspace icon from W3M to Chawan - Drop web/w3m module
Diffstat (limited to 'modules/web/w3m')
-rw-r--r--modules/web/w3m/assertions.nix13
-rw-r--r--modules/web/w3m/default.nix37
2 files changed, 0 insertions, 50 deletions
diff --git a/modules/web/w3m/assertions.nix b/modules/web/w3m/assertions.nix
deleted file mode 100644
index b5ae2be..0000000
--- a/modules/web/w3m/assertions.nix
+++ /dev/null
@@ -1,13 +0,0 @@
-# Assertions - Validates kitty is enabled for w3m desktop entry
-{ config, ... }:
-{
- assertions = [
- {
- assertion = !config.web.w3m.enable || config.terminal.kitty.enable;
- message = ''
- web.w3m is enabled but terminal.kitty.enable is not.
- w3m's desktop entry requires kitty as the terminal launcher. Please enable terminal.kitty.
- '';
- }
- ];
-}
diff --git a/modules/web/w3m/default.nix b/modules/web/w3m/default.nix
deleted file mode 100644
index a4fdb1f..0000000
--- a/modules/web/w3m/default.nix
+++ /dev/null
@@ -1,37 +0,0 @@
-# w3m - Text-based web browser and pager
-{
- config,
- lib,
- ...
-}:
-{
- imports = [
- ./assertions.nix
- ];
-
- options.web.w3m = {
- enable = lib.mkEnableOption "Enables w3m.";
- package = lib.mkOption {
- type = lib.types.package;
- default = config.programs.w3m.finalPackage;
- defaultText = lib.literalExpression "config.programs.w3m.finalPackage";
- description = "Package to use for w3m. Defaults to the wrapped finalPackage from programs.w3m.";
- };
- };
-
- 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
- ];
- };
-}