94 lines
2.4 KiB
Nix
94 lines
2.4 KiB
Nix
{
|
|
pkgs,
|
|
username,
|
|
...
|
|
}:
|
|
{
|
|
programs.firefox = {
|
|
enable = true;
|
|
package = pkgs.firefox;
|
|
|
|
policies = {
|
|
# Updates & Background Services
|
|
AppAutoUpdate = false;
|
|
BackgroundAppUpdate = false;
|
|
|
|
# Extensions
|
|
ExtensionSettings = let
|
|
moz = short: "https://addons.mozilla.org/firefox/downloads/latest/${short}/latest.xpi";
|
|
in {
|
|
"*".installation_mode = "blocked";
|
|
|
|
# uBlock Origin
|
|
"uBlock0@raymondhill.net" = {
|
|
install_url = moz "ublock-origin";
|
|
installation_mode = "force_installed";
|
|
updates_disabled = true;
|
|
private_browsing = true;
|
|
default_area = "navbar";
|
|
};
|
|
|
|
# Bitwarden
|
|
"{446900e4-71c2-419f-a6a7-df9c091e268b}" = {
|
|
install_url = moz "bitwarden-password-manager";
|
|
installation_mode = "force_installed";
|
|
updates_disabled = true;
|
|
private_browsing = true;
|
|
default_area = "navbar";
|
|
};
|
|
|
|
# Dark Reader
|
|
"addon@darkreader.org" = {
|
|
install_url = moz "darkreader";
|
|
installation_mode = "force_installed";
|
|
updates_disabled = true;
|
|
private_browsing = true;
|
|
default_area = "navbar";
|
|
};
|
|
|
|
# SponsorBlock
|
|
"sponsorBlocker@ajay.app" = {
|
|
install_url = moz "sponsorblock";
|
|
installation_mode = "force_installed";
|
|
updates_disabled = true;
|
|
private_browsing = true;
|
|
default_area = "menupanel";
|
|
};
|
|
|
|
# Return YouTube Dislike
|
|
"{762f9885-5a13-4abd-9c77-433dcd38b8fd}" = {
|
|
install_url = moz "return-youtube-dislikes";
|
|
installation_mode = "force_installed";
|
|
updates_disabled = true;
|
|
private_browsing = true;
|
|
default_area = "menupanel";
|
|
};
|
|
|
|
# RES
|
|
"jid1-xUfzOsOFlzSOXg@jetpack" = {
|
|
install_url = moz "reddit-enhancement-suite";
|
|
installation_mode = "force_installed";
|
|
updates_disabled = true;
|
|
private_browsing = true;
|
|
default_area = "menupanel";
|
|
};
|
|
};
|
|
|
|
"3rdparty".Extensions = {
|
|
"{446900e4-71c2-419f-a6a7-df9c091e268b}" = {
|
|
environment = {
|
|
base = "https://bitwarden.joshuayuen.me";
|
|
};
|
|
};
|
|
};
|
|
|
|
profiles = {
|
|
${username} = {
|
|
id = 0;
|
|
isDefault = true;
|
|
name = "${username}";
|
|
};
|
|
};
|
|
};
|
|
};
|
|
} |