mirror of
https://github.com/SebastianStork/nixos-config.git
synced 2026-01-21 17:31:34 +01:00
Wrap firefox
This commit is contained in:
parent
f3c934467f
commit
f34f95efeb
5 changed files with 129 additions and 1 deletions
26
wrappers/firefox/extensions.nix
Normal file
26
wrappers/firefox/extensions.nix
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
{ moduleArgs, ... }:
|
||||
let
|
||||
inherit (moduleArgs) lib inputs;
|
||||
|
||||
extension = shortId: uuid: {
|
||||
name = uuid;
|
||||
value = {
|
||||
install_url = "file:///${
|
||||
inputs.firefox-addons.packages.x86_64-linux.${shortId}
|
||||
}/share/mozilla/extensions/{ec8030f7-c20a-464f-9b0e-13a3a9e97384}/${uuid}.xpi";
|
||||
installation_mode = "force_installed";
|
||||
default_area = "menupanel";
|
||||
};
|
||||
};
|
||||
in
|
||||
{
|
||||
"*".installation_mode = "blocked";
|
||||
}
|
||||
// lib.listToAttrs [
|
||||
(extension "dictionary-german" "de-DE@dictionaries.addons.mozilla.org")
|
||||
(extension "ublock-origin" "uBlock0@raymondhill.net")
|
||||
(extension "bitwarden" "{446900e4-71c2-419f-a6a7-df9c091e268b}")
|
||||
(extension "return-youtube-dislikes" "{762f9885-5a13-4abd-9c77-433dcd38b8fd}")
|
||||
(extension "sponsorblock" "sponsorBlocker@ajay.app")
|
||||
(extension "clearurls" "{74145f27-f039-47ce-a470-a662b129930a}")
|
||||
]
|
||||
Loading…
Add table
Add a link
Reference in a new issue