diff options
author | Tim Keller <tjkeller.xyz> | 2024-11-17 20:59:51 -0600 |
---|---|---|
committer | Tim Keller <tjkeller.xyz> | 2024-11-17 20:59:51 -0600 |
commit | 98aa1968a263d7de4f41fde9e10c02e4e9b234f9 (patch) | |
tree | e8e97c899a7609d71ec8debc1898c4a9ce4ad75c /modules | |
parent | a6033a1b4cfdc5f37f4185752c2830bd5a45792a (diff) | |
download | nixos-98aa1968a263d7de4f41fde9e10c02e4e9b234f9.tar.xz nixos-98aa1968a263d7de4f41fde9e10c02e4e9b234f9.zip |
unused module for customizing chrome
Diffstat (limited to 'modules')
-rw-r--r-- | modules/home/chrome.nix | 28 | ||||
-rw-r--r-- | modules/root/ddcutil.nix | 6 |
2 files changed, 34 insertions, 0 deletions
diff --git a/modules/home/chrome.nix b/modules/home/chrome.nix new file mode 100644 index 0000000..976a74b --- /dev/null +++ b/modules/home/chrome.nix @@ -0,0 +1,28 @@ +{ pkgs, lib, ... }: { + programs.chromium = { + enable = true; + package = pkgs.ungoogled-chromium; + }; + programs.chromium.extensions = + let + createChromiumExtensionFor = browserVersion: { id, sha256, version }: + { + inherit id; + crxPath = builtins.fetchurl { + url = "https://clients2.google.com/service/update2/crx?response=redirect&acceptformat=crx2,crx3&prodversion=${browserVersion}&x=id%3D${id}%26installsource%3Dondemand%26uc"; + name = "${id}.crx"; + inherit sha256; + }; + inherit version; + }; + createChromiumExtension = createChromiumExtensionFor (lib.versions.major pkgs.ungoogled-chromium.version); + in + [ + (createChromiumExtension { + # ublock origin + id = "cjpalhdlnbpafiamejdnhcphjbkeiagm"; + sha256 = "sha256:1i0668xhq5iflb4fn0ghwp79iz6mwspgxdqwp6incbvsyzr596kg"; + version = "1.61.0"; + }) + ]; +} diff --git a/modules/root/ddcutil.nix b/modules/root/ddcutil.nix new file mode 100644 index 0000000..93e0af5 --- /dev/null +++ b/modules/root/ddcutil.nix @@ -0,0 +1,6 @@ +{ pkgs, ... }: { + hardware.i2c.enable = true; + environment.systemPackages = with pkgs; [ + ddcutil + ]; +} |