diff options
Diffstat (limited to 'modules/web/w3m/default.nix')
| -rw-r--r-- | modules/web/w3m/default.nix | 37 |
1 files changed, 0 insertions, 37 deletions
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 - ]; - }; -} |
