diff options
| author | Arpit Chakladar <arpitchakladar+git@gmail.com> | 2026-08-15 15:27:31 +0530 |
|---|---|---|
| committer | Arpit Chakladar <arpitchakladar+git@gmail.com> | 2026-08-29 03:50:26 +0530 |
| commit | 2d43bdaaf12a533ebb9bbc601f4466f97bb2c720 (patch) | |
| tree | 908fbd3ebdec38a1d46b14c7dab67f1b1d6731c0 /modules/web/chromium/extensions | |
| parent | 35531152e6a358b07408fc194db6d5532c2fb57c (diff) | |
| download | home-manager-config-2d43bdaaf12a533ebb9bbc601f4466f97bb2c720.tar.gz home-manager-config-2d43bdaaf12a533ebb9bbc601f4466f97bb2c720.zip | |
feat: replaced lsd with eza for ls replacement
- Using eza instead of lsd for ls replacement, cuz its better
- Some other minor refactoring for chromium extensions
Diffstat (limited to 'modules/web/chromium/extensions')
| -rw-r--r-- | modules/web/chromium/extensions/lib.nix | 16 | ||||
| -rw-r--r-- | modules/web/chromium/extensions/vimium.nix | 1 |
2 files changed, 7 insertions, 10 deletions
diff --git a/modules/web/chromium/extensions/lib.nix b/modules/web/chromium/extensions/lib.nix index fed6846..2fdd3a8 100644 --- a/modules/web/chromium/extensions/lib.nix +++ b/modules/web/chromium/extensions/lib.nix @@ -4,7 +4,7 @@ config, checkForUpdates ? true, }: -rec { +let # Fetch using the Releases API (Finds the latest official GitHub Release) fetchLatestGithubReleaseTag = { owner, repo }: @@ -48,7 +48,7 @@ rec { throw "No tags found for ${owner}/${repo} matching prefix '${tagPrefix}' and regex '${toString tagRegex}'"; # Internal helper to handle the version comparison and error message - _verifyAndThrow = + verifyAndThrow = { pname, version, @@ -82,7 +82,8 @@ rec { '' else version; - +in +{ checkExtensionVersion = { pname, @@ -98,7 +99,7 @@ rec { let latestTag = fetchLatestGithubReleaseTag { inherit owner repo; }; in - _verifyAndThrow { + verifyAndThrow { inherit pname version @@ -132,7 +133,7 @@ rec { ; }; in - _verifyAndThrow { + verifyAndThrow { inherit pname version @@ -143,10 +144,7 @@ rec { updateType = "tag"; }; - # ========================================== - # 3. EXTENSION BUILDERS - # ========================================== - + # EXTENSION BUILDERS # Download and unpack a zip or crx file into an unpacked extension directory fetchUnpackedExtension = { diff --git a/modules/web/chromium/extensions/vimium.nix b/modules/web/chromium/extensions/vimium.nix index 5c9726b..4c1511a 100644 --- a/modules/web/chromium/extensions/vimium.nix +++ b/modules/web/chromium/extensions/vimium.nix @@ -1,6 +1,5 @@ { extLib, - lib, ... }: let |
