add chrome browser
This commit is contained in:
parent
7287cd98c0
commit
1b256f94ae
1 changed files with 6 additions and 31 deletions
|
@ -23,39 +23,14 @@ in {
|
||||||
"--ignore-gpu-blocklist"
|
"--ignore-gpu-blocklist"
|
||||||
"--enable-zero-copy"
|
"--enable-zero-copy"
|
||||||
];
|
];
|
||||||
});
|
})
|
||||||
];
|
];
|
||||||
|
|
||||||
programs.chromium = {
|
programs.chromium = {
|
||||||
enable = true;
|
enable = true;
|
||||||
package = pkgs.ungoogled-chromium;
|
extensions = [
|
||||||
extensions =
|
"cjpalhdlnbpafiamejdnhcphjbkeiagm"
|
||||||
let
|
"eimadpbcbfnmbkopoojfekhnkhdbieeh"
|
||||||
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 package.version);
|
|
||||||
in
|
|
||||||
[
|
|
||||||
(createChromiumExtension {
|
|
||||||
# ublock origin
|
|
||||||
id = "cjpalhdlnbpafiamejdnhcphjbkeiagm";
|
|
||||||
sha256 = "sha256-u81DNkZw/LBVyjk5nmrrJEVjdc+GFCay+rQZGpDH3jA=";
|
|
||||||
version = "1.62.0";
|
|
||||||
})
|
|
||||||
(createChromiumExtension {
|
|
||||||
# dark reader
|
|
||||||
id = "eimadpbcbfnmbkopoojfekhnkhdbieeh";
|
|
||||||
sha256 = "sha256-JcM2Ki3cTWdskFEFs2jk6LQUTFOojkBf+6HqO1GPK90=";
|
|
||||||
version = "4.9.34";
|
|
||||||
})
|
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue