2024-08-25 15:02:35 +00:00
|
|
|
{ pkgs, ... }:
|
|
|
|
{
|
2024-02-13 20:19:48 +00:00
|
|
|
programs.firefox = {
|
|
|
|
enable = true;
|
2024-06-23 15:20:57 +00:00
|
|
|
package = pkgs.firefox.override {
|
|
|
|
extraPrefsFiles = [
|
2024-08-25 15:02:35 +00:00
|
|
|
(pkgs.runCommandLocal "userjs" { } ''
|
2024-10-20 06:56:19 +00:00
|
|
|
substitute ${pkgs.arkenfox-userjs}/user.js $out \
|
|
|
|
--replace-fail 'user_pref' 'lockPref'
|
|
|
|
'')
|
|
|
|
(pkgs.runCommandLocal "userjs" { } ''
|
|
|
|
substitute ${./user-overrides.js} $out \
|
|
|
|
--replace-fail 'user_pref' 'lockPref'
|
2024-06-23 15:20:57 +00:00
|
|
|
'')
|
|
|
|
];
|
2023-11-12 05:38:43 +00:00
|
|
|
};
|
2024-10-02 11:47:24 +00:00
|
|
|
|
|
|
|
policies.ExtensionSettings = {
|
|
|
|
"redirector@einaregilsson.com" = {
|
|
|
|
install_url = "https://addons.mozilla.org/firefox/downloads/latest/redirector/latest.xpi";
|
|
|
|
installation_mode = "force_installed";
|
|
|
|
};
|
|
|
|
"sponsorBlocker@ajay.app" = {
|
|
|
|
install_url = "https://addons.mozilla.org/firefox/downloads/latest/sponsorblock/latest.xpi";
|
|
|
|
installation_mode = "force_installed";
|
|
|
|
};
|
|
|
|
"uBlock0@raymondhill.net" = {
|
|
|
|
install_url = "https://addons.mozilla.org/firefox/downloads/latest/ublock-origin/latest.xpi";
|
|
|
|
installation_mode = "force_installed";
|
|
|
|
};
|
|
|
|
"{446900e4-71c2-419f-a6a7-df9c091e268b}" = {
|
|
|
|
install_url = "https://addons.mozilla.org/firefox/downloads/latest/bitwarden-password-manager/latest.xpi";
|
|
|
|
installation_mode = "force_installed";
|
|
|
|
};
|
|
|
|
"{d7742d87-e61d-4b78-b8a1-b469842139fa}" = {
|
|
|
|
install_url = "https://addons.mozilla.org/firefox/downloads/latest/vimium-ff/latest.xpi";
|
|
|
|
installation_mode = "force_installed";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2024-08-25 15:02:35 +00:00
|
|
|
profiles."default" = { };
|
2023-11-12 05:38:43 +00:00
|
|
|
};
|
2023-11-05 12:50:08 +00:00
|
|
|
}
|