diff options
| author | Arpit Chakladar <arpitchakladar+git@gmail.com> | 2026-07-29 23:08:57 +0530 |
|---|---|---|
| committer | Arpit Chakladar <arpitchakladar+git@gmail.com> | 2026-07-29 23:08:57 +0530 |
| commit | 37fb12eee6be551f0ef9b31e2547e115bdeef8e9 (patch) | |
| tree | 85258cd57a168935609a41f6c59fef508cf22714 /modules/web/chromium/extensions/lib.nix | |
| parent | 56807df619a6aa8eeea8f782ffc625adc800eb51 (diff) | |
| download | home-manager-config-37fb12eee6be551f0ef9b31e2547e115bdeef8e9.tar.gz home-manager-config-37fb12eee6be551f0ef9b31e2547e115bdeef8e9.zip | |
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.
Diffstat (limited to 'modules/web/chromium/extensions/lib.nix')
| -rw-r--r-- | modules/web/chromium/extensions/lib.nix | 17 |
1 files changed, 17 insertions, 0 deletions
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/ + ''; + }; } |
