diff options
| author | Arpit Chakladar <arpitchakladar+git@gmail.com> | 2026-07-27 22:58:52 +0530 |
|---|---|---|
| committer | Arpit Chakladar <arpitchakladar+git@gmail.com> | 2026-07-27 23:04:07 +0530 |
| commit | c1daed5370b8ca2555c12cb5f248b5891bc8896a (patch) | |
| tree | 06c1f13e9b499458ffced4865c4d158fda06df36 /modules/web/chromium/extensions/dark-mode.nix | |
| parent | 1079bdef3a4630c915f62c437187a821167e8d7b (diff) | |
| download | home-manager-config-c1daed5370b8ca2555c12cb5f248b5891bc8896a.tar.gz home-manager-config-c1daed5370b8ca2555c12cb5f248b5891bc8896a.zip | |
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
Diffstat (limited to 'modules/web/chromium/extensions/dark-mode.nix')
| -rw-r--r-- | modules/web/chromium/extensions/dark-mode.nix | 32 |
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="; + }; +} |
