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 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'modules/web/chawan/default.nix') 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"; -- cgit v1.2.3