aboutsummaryrefslogtreecommitdiffstats
path: root/modules/web/chromium/extensions/dark-mode.nix
diff options
context:
space:
mode:
Diffstat (limited to 'modules/web/chromium/extensions/dark-mode.nix')
-rw-r--r--modules/web/chromium/extensions/dark-mode.nix32
1 files changed, 32 insertions, 0 deletions
diff --git a/modules/web/chromium/extensions/dark-mode.nix b/modules/web/chromium/extensions/dark-mode.nix
new file mode 100644
index 0000000..4ac9040
--- /dev/null
+++ b/modules/web/chromium/extensions/dark-mode.nix
@@ -0,0 +1,32 @@
+{
+ lib,
+ pkgs,
+ extLib,
+}:
+let
+ pname = "dark-mode";
+ owner = "code-charity";
+ repo = "dark-mode";
+ version = "3.3.11";
+ checkedVersion = extLib.checkExtensionVersion {
+ inherit
+ pname
+ owner
+ repo
+ version
+ ;
+ tagPrefix = "v";
+ urlTemplate = "https://github.com/${owner}/${repo}/archive/refs/tags/v<version>.zip";
+ };
+in
+{
+ inherit pname;
+ version = checkedVersion;
+ id = "ifpghghnlimndidoppdkdnbljddikfoj";
+ drv = extLib.fetchUnpackedExtension {
+ inherit pname;
+ version = checkedVersion;
+ url = "https://github.com/${owner}/${repo}/archive/refs/tags/v${checkedVersion}.zip";
+ hash = "sha256-Lt3T8i0ylV0l+T0eqnzs6veBcOpizhP79LgSkUx4xI8=";
+ };
+}