From c1daed5370b8ca2555c12cb5f248b5891bc8896a Mon Sep 17 00:00:00 2001 From: Arpit Chakladar Date: Mon, 27 Jul 2026 22:58:52 +0530 Subject: feat: using ungoogled-chromium, accelerated graphics for hyprland - Switch to using ungoogled-chromium package instead of chromium to get away from google tracking - Installing extensions unpacked from their source code/zip downloads for ungoogled-chromium - Using hl.env to pass environment variables to hyprland as home.sessionVariables don't get passed - Fixed the graphics acceleration for hyprland, but passing the environment variables through hl.env --- modules/web/chromium/extensions/dark-mode.nix | 32 +++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 modules/web/chromium/extensions/dark-mode.nix (limited to 'modules/web/chromium/extensions/dark-mode.nix') 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.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="; + }; +} -- cgit v1.2.3