From 37fb12eee6be551f0ef9b31e2547e115bdeef8e9 Mon Sep 17 00:00:00 2001 From: Arpit Chakladar Date: Wed, 29 Jul 2026 23:08:57 +0530 Subject: feat(chromium): added custom theme - Added a custom theme as an extension with just manifest.json file. The theme now more closely matches the colors of the rest of the applications. --- modules/web/chromium/extensions/lib.nix | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) (limited to 'modules/web/chromium/extensions/lib.nix') diff --git a/modules/web/chromium/extensions/lib.nix b/modules/web/chromium/extensions/lib.nix index c7aefe3..8821b03 100644 --- a/modules/web/chromium/extensions/lib.nix +++ b/modules/web/chromium/extensions/lib.nix @@ -123,4 +123,21 @@ rec { installPhase = "true"; }; + + # --- Package a local directory as an unpacked extension derivation. --- + mkLocalExtension = + { + pname, + srcDir, + version ? "1.0.0", + }: + pkgs.stdenv.mkDerivation { + inherit pname version; + src = srcDir; + phases = [ "installPhase" ]; + installPhase = '' + mkdir -p $out + cp -r $src/* $out/ + ''; + }; } -- cgit v1.2.3