From 2d43bdaaf12a533ebb9bbc601f4466f97bb2c720 Mon Sep 17 00:00:00 2001 From: Arpit Chakladar Date: Sat, 15 Aug 2026 15:27:31 +0530 Subject: 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 --- modules/web/chromium/extensions/lib.nix | 16 +++++++--------- modules/web/chromium/extensions/vimium.nix | 1 - 2 files changed, 7 insertions(+), 10 deletions(-) (limited to 'modules/web/chromium/extensions') 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 -- cgit v1.2.3