From f357c956a5c9f8a662e1cb354d97eccc55deca0c Mon Sep 17 00:00:00 2001 From: Arpit Chakladar Date: Tue, 28 Jul 2026 01:15:02 +0530 Subject: feat(chawan): add homeUrl option; feat(chromium): hide NTP footer - Add web.chawan.homeUrl option (default: https://searx.space) and pass it as the startup URL in the desktop entry. - Set NewTabPage.FooterVisible = false in Chromium preferences. --- modules/web/chawan/default.nix | 7 ++++++- modules/web/chromium/default.nix | 3 +++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/modules/web/chawan/default.nix b/modules/web/chawan/default.nix index 845ffb5..073e527 100644 --- a/modules/web/chawan/default.nix +++ b/modules/web/chawan/default.nix @@ -18,12 +18,17 @@ defaultText = lib.literalExpression "pkgs.chawan"; description = "Package to use for chawan."; }; + homeUrl = lib.mkOption { + type = lib.types.str; + default = "https://searx.space"; + description = "The first page to open when chawan is launched."; + }; }; config = lib.mkIf config.web.chawan.enable { xdg.desktopEntries."chawan" = { name = "Chawan"; - exec = "${lib.getExe config.terminal.kitty.package} --class chawan -e ${lib.getExe config.web.chawan.package}"; + exec = "${lib.getExe config.terminal.kitty.package} --class chawan -e ${lib.getExe config.web.chawan.package} ${config.web.chawan.homeUrl}"; icon = "kitty"; categories = [ "Network" ]; comment = "Text-based web browser"; diff --git a/modules/web/chromium/default.nix b/modules/web/chromium/default.nix index 8cf0bea..3f426b3 100644 --- a/modules/web/chromium/default.nix +++ b/modules/web/chromium/default.nix @@ -69,6 +69,9 @@ xdg.configFile."chromium/Default/Preferences" = { force = true; text = builtins.toJSON { + NewTabPage = { + FooterVisible = false; + }; browser = { show_full_urls = true; theme = { -- cgit v1.2.3