2021-12-31 14:14:19 +01:00
|
|
|
{config, pkgs, lib, ...}:
|
|
|
|
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
|
|
|
|
{
|
|
|
|
|
|
|
|
programs.browserpass.browsers = [ "chromium" ];
|
|
|
|
programs.chromium = {
|
|
|
|
enable = true;
|
|
|
|
package = (pkgs.ungoogled-chromium.override {
|
|
|
|
commandLineArgs = [
|
2022-02-23 22:21:51 +01:00
|
|
|
"--enable-features=UseOzonePlatform,WebRTCPipeWireCapturer"
|
2021-12-31 14:14:19 +01:00
|
|
|
"--ozone-platform=wayland"
|
|
|
|
];
|
|
|
|
});
|
|
|
|
extensions = [
|
2023-01-13 21:45:04 +01:00
|
|
|
## browserpass
|
|
|
|
{
|
|
|
|
# id = "naepdomgkenhinolocfifgehidddafch";
|
|
|
|
id = "pjmbgaakjkbhpopmakjoedenlfdmcdgm";
|
|
|
|
# id = "klfoddkbhleoaabpmiigbmpbjfljimgb";
|
|
|
|
# crxPath = "/tmp/a.crx";
|
|
|
|
crxPath = (builtins.fetchurl {
|
|
|
|
url = "https://github.com/browserpass/browserpass-extension/releases/download/3.7.2/browserpass-github-3.7.2.crx";
|
|
|
|
name = "naepdomgkenhinolocfifgehidddafch.crx";
|
|
|
|
});
|
|
|
|
updateUrl = "https://github.com/browserpass/browserpass-extension/releases/download/3.7.2/browserpass-github-3.7.2.crx";
|
|
|
|
version = "3.7.2";
|
|
|
|
}
|
|
|
|
#(createChromiumExtension {
|
|
|
|
# id = "naepdomgkenhinolocfifgehidddafch";
|
|
|
|
## "naepdomgkenhinolocfifgehidddafch"
|
|
|
|
# sha256 = "1gwy7fa1076ynaspz8rsfrp29cizgp7dk2wbznaxhbmim9ys6hkq";
|
|
|
|
# version = "3.7.2";
|
|
|
|
#})
|
|
|
|
## ublock origin
|
2021-12-31 14:14:19 +01:00
|
|
|
(createChromiumExtension {
|
2023-01-13 21:45:04 +01:00
|
|
|
id = "cjpalhdlnbpafiamejdnhcphjbkeiagm";
|
|
|
|
# "cjpalhdlnbpafiamejdnhcphjbkeiagm"
|
|
|
|
sha256 = "1i14y4sq9vl01wqhlgxmdv6knhjm622llc8ycbq3l2k389shj7ng";
|
|
|
|
version = "1.46.0";
|
2021-12-31 14:14:19 +01:00
|
|
|
})
|
2023-01-13 21:45:04 +01:00
|
|
|
## uMatrix
|
2021-12-31 14:14:19 +01:00
|
|
|
(createChromiumExtension {
|
|
|
|
id = "ogfcmafjalglgifnmanfmnieipoejdcf";
|
2023-01-13 21:45:04 +01:00
|
|
|
# "ogfcmafjalglgifnmanfmnieipoejdcf"
|
2021-12-31 14:14:19 +01:00
|
|
|
sha256 = "0l1i79naglp2xbqvkvrw7340749wncdql8dklrklz3b406c01cmf";
|
|
|
|
version = "1.4.4";
|
|
|
|
})
|
2023-01-13 21:45:04 +01:00
|
|
|
## ipvFoo
|
2021-12-31 14:14:19 +01:00
|
|
|
(createChromiumExtension {
|
|
|
|
id = "ecanpcehffngcegjmadlcijfolapggal";
|
2023-01-13 21:45:04 +01:00
|
|
|
# "ecanpcehffngcegjmadlcijfolapggal"
|
|
|
|
sha256 = "1b8ail2sj14xaisw25c29c0hvwn8qv612rg50x8lwajwxh143caf";
|
|
|
|
version = "2.3";
|
2021-12-31 14:14:19 +01:00
|
|
|
})
|
2023-01-13 21:45:04 +01:00
|
|
|
## Vertical Tabs by Michael
|
2022-01-23 22:43:31 +01:00
|
|
|
(createChromiumExtension {
|
|
|
|
id = "pddljdmihkpdfpkgmbhdomeeifpklgnm";
|
2023-01-13 21:45:04 +01:00
|
|
|
# "pddljdmihkpdfpkgmbhdomeeifpklgnm"
|
2022-01-23 22:43:31 +01:00
|
|
|
sha256 = "19hb2gmkr4fb4mnsyvak0k1w33m3v9yjsad5lzcm8yamna18829y";
|
|
|
|
version = "2.0.4";
|
|
|
|
})
|
2021-12-31 14:14:19 +01:00
|
|
|
];
|
|
|
|
};
|
|
|
|
}
|