configure firefoxpwa

This commit is contained in:
Sean Kovacs 2026-01-14 14:50:25 -05:00
commit 9ef9476f80
Signed by: sckova
GPG key ID: 00F325187C68651A
2 changed files with 217 additions and 179 deletions

View file

@ -170,9 +170,7 @@
input-leap input-leap
libreoffice-qt-fresh libreoffice-qt-fresh
# nur.repos.forkprince.helium-nightly # nur.repos.forkprince.helium-nightly
bitwarden-desktop
qbittorrent qbittorrent
whatsapp-electron
nautilus nautilus
# gui applications ( multimedia ) # gui applications ( multimedia )

View file

@ -52,191 +52,231 @@
force = true; force = true;
}; };
programs.firefox = { home.file.".local/share/firefoxpwa/profiles/01KEYXH9TC4B54J5CTPNE75JP0/prefs.js" = {
enable = true; text = ''
package = pkgs.firefox.override { user_pref("firefoxpwa.alwaysUseNativeWindowControls", true);
nativeMessagingHosts = with pkgs; [ user_pref("firefoxpwa.displayUrlBar", 1);
firefoxpwa user_pref("firefoxpwa.enableHidingIconBar", true);
]; user_pref("firefoxpwa.dynamicWindowTitle", true);
}; user_pref("ui.key.menuAccessKeyFocuses", false);
policies = { user_pref("browser.aboutConfig.showWarning", false);
BlockAboutConfig = false; user_pref("browser.ml.enable", false);
DefaultDownloadDirectory = "\${home}/Downloads"; '';
# Check about:support for extension/add-on ID strings. force = true;
# Valid strings for installation_mode are "allowed", "blocked", };
# "force_installed" and "normal_installed".
ExtensionSettings = { programs = {
"*" = { firefoxpwa = {
"installation_mode" = "blocked"; enable = true;
}; settings.config = {
"uBlock0@raymondhill.net" = { always_patch = false;
installation_mode = "allowed"; runtime_enable_wayland = true;
}; runtime_use_xinput2 = true;
"gdpr@cavi.au.dk" = { runtime_use_portals = true;
installation_mode = "allowed"; use_linked_runtime = false;
}; };
"{5cce4ab5-3d47-41b9-af5e-8203eea05245}" = { profiles = {
installation_mode = "allowed"; "01KEYXH9TC4B54J5CTPNE75JP0".sites."01KEYXHK7XQQJ0M3J7SX4VD9PG" = {
}; name = "WhatsApp";
"plasma-browser-integration@kde.org" = { url = "https://web.whatsapp.com/";
installation_mode = "allowed"; manifestUrl = "https://web.whatsapp.com/data/manifest.json";
}; desktopEntry = {
"jid1-MnnxcxisBPnSXQ@jetpack" = { icon = "${pkgs.colloid-icon-theme}/share/icons/Colloid/apps/scalable/whatsapp.svg";
installation_mode = "allowed"; categories = [
}; "Network"
"firefoxpwa@filips.si" = { "Chat"
installation_mode = "allowed"; "Telephony"
}; ];
"sponsorBlocker@ajay.app" = { };
installation_mode = "allowed";
};
"{7a7a4a92-a2a0-41d1-9fd7-1e92480d612d}" = {
installation_mode = "allowed";
};
"{aecec67f-0d10-4fa7-b7c7-609a2db280cf}" = {
installation_mode = "allowed";
};
"{446900e4-71c2-419f-a6a7-df9c091e268b}" = {
installation_mode = "allowed";
}; };
}; };
DisableTelemetry = true;
DisableFirefoxStudies = true;
EnableTrackingProtection = {
Value = true;
Locked = true;
Cryptomining = true;
Fingerprinting = true;
};
DisablePocket = true;
DisableFirefoxAccounts = false;
DisableAccounts = false;
DisableFirefoxScreenshots = true;
OverrideFirstRunPage = "";
OverridePostUpdatePage = "";
DontCheckDefaultBrowser = true;
DisplayBookmarksToolbar = "newtab"; # alternatives: "always" or "newtab"
DisplayMenuBar = "always"; # alternatives: "always", "never" or "default-on"
SearchBar = "unified"; # alternative: "separate"
}; };
profiles = { firefox = {
default = { enable = true;
id = 0; package = pkgs.firefox.override {
name = "default"; nativeMessagingHosts = with pkgs; [
isDefault = true; firefoxpwa
extensions = { ];
force = true; };
packages = with pkgs.nur.repos.rycee.firefox-addons; [ policies = {
ublock-origin BlockAboutConfig = false;
plasma-integration DefaultDownloadDirectory = "\${home}/Downloads";
stylus # Check about:support for extension/add-on ID strings.
violentmonkey # Valid strings for installation_mode are "allowed", "blocked",
consent-o-matic # "force_installed" and "normal_installed".
privacy-badger ExtensionSettings = {
sponsorblock "*" = {
pwas-for-firefox "installation_mode" = "blocked";
control-panel-for-twitter };
bitwarden "uBlock0@raymondhill.net" = {
]; installation_mode = "allowed";
settings = { };
"{7a7a4a92-a2a0-41d1-9fd7-1e92480d612d}".settings = { "gdpr@cavi.au.dk" = {
force = true; installation_mode = "allowed";
settings = { };
dbInChromeStorage = true; "{5cce4ab5-3d47-41b9-af5e-8203eea05245}" = {
installation_mode = "allowed";
};
"plasma-browser-integration@kde.org" = {
installation_mode = "allowed";
};
"jid1-MnnxcxisBPnSXQ@jetpack" = {
installation_mode = "allowed";
};
"firefoxpwa@filips.si" = {
installation_mode = "allowed";
};
"sponsorBlocker@ajay.app" = {
installation_mode = "allowed";
};
"{7a7a4a92-a2a0-41d1-9fd7-1e92480d612d}" = {
installation_mode = "allowed";
};
"{aecec67f-0d10-4fa7-b7c7-609a2db280cf}" = {
installation_mode = "allowed";
};
"{446900e4-71c2-419f-a6a7-df9c091e268b}" = {
installation_mode = "allowed";
};
};
DisableTelemetry = true;
DisableFirefoxStudies = true;
EnableTrackingProtection = {
Value = true;
Locked = true;
Cryptomining = true;
Fingerprinting = true;
};
DisablePocket = true;
DisableFirefoxAccounts = false;
DisableAccounts = false;
DisableFirefoxScreenshots = true;
OverrideFirstRunPage = "";
OverridePostUpdatePage = "";
DontCheckDefaultBrowser = true;
DisplayBookmarksToolbar = "newtab"; # alternatives: "always" or "newtab"
DisplayMenuBar = "always"; # alternatives: "always", "never" or "default-on"
SearchBar = "unified"; # alternative: "separate"
};
profiles = {
default = {
id = 0;
name = "default";
isDefault = true;
extensions = {
force = true;
packages = with pkgs.nur.repos.rycee.firefox-addons; [
ublock-origin
plasma-integration
stylus
violentmonkey
consent-o-matic
privacy-badger
sponsorblock
pwas-for-firefox
control-panel-for-twitter
bitwarden
];
settings = {
"{7a7a4a92-a2a0-41d1-9fd7-1e92480d612d}".settings = {
force = true;
settings = {
dbInChromeStorage = true;
};
}; };
}; };
}; };
}; settings = {
settings = { "extensions.autoDisableScopes" = 0; # enables all extensions automatically
"extensions.autoDisableScopes" = 0; # enables all extensions automatically "xpinstall.signatures.required" = false;
"xpinstall.signatures.required" = false; "extensions.update.autoUpdateDefault" = false;
"extensions.update.autoUpdateDefault" = false; "extensions.update.enabled" = false;
"extensions.update.enabled" = false; "browser.search.defaultenginename" = "google";
"browser.search.defaultenginename" = "google"; "browser.search.order.1" = "google";
"browser.search.order.1" = "google"; "browser.toolbars.bookmarks.visibility" = "newtab";
"browser.toolbars.bookmarks.visibility" = "newtab";
"signon.rememberSignons" = false; "signon.rememberSignons" = false;
"widget.use-xdg-desktop-portal.file-picker" = 1; "widget.use-xdg-desktop-portal.file-picker" = 1;
"browser.aboutConfig.showWarning" = false; "browser.aboutConfig.showWarning" = false;
"browser.compactmode.show" = true; "browser.compactmode.show" = true;
"browser.cache.disk.enable" = true; # Set to false if you have a HDD "browser.cache.disk.enable" = true; # Set to false if you have a HDD
"browser.warnOnQuitShortcut" = false; "browser.warnOnQuitShortcut" = false;
"toolkit.legacyUserProfileCustomizations.stylesheets" = true; "toolkit.legacyUserProfileCustomizations.stylesheets" = true;
"widget.disable-workspace-management" = true; "widget.disable-workspace-management" = true;
"browser.contentblocking.category" = { "browser.contentblocking.category" = {
Value = "strict"; Value = "strict";
Status = "locked"; Status = "locked";
};
"widget.gtk.global-menu.enabled" = true;
"widget.gtk.global-menu.wayland.enabled" = true;
"browser.tabs.inTitlebar" = 0;
"extensions.pocket.enabled" = false;
"extensions.screenshots.disabled" = true;
"browser.topsites.contile.enabled" = false;
"browser.formfill.enable" = false;
"browser.search.suggest.enabled" = false;
"browser.search.suggest.enabled.private" = false;
"browser.urlbar.suggest.searches" = false;
"browser.urlbar.showSearchSuggestionsFirst" = false;
"browser.newtabpage.activity-stream.feeds.section.topstories" = false;
"browser.newtabpage.activity-stream.feeds.snippets" = false;
"browser.newtabpage.activity-stream.feeds.topsites" = false;
"browser.newtabpage.activity-stream.section.highlights.includePocket" = false;
"browser.newtabpage.activity-stream.section.highlights.includeBookmarks" = false;
"browser.newtabpage.activity-stream.section.highlights.includeDownloads" = false;
"browser.newtabpage.activity-stream.section.highlights.includeVisited" = false;
"browser.newtabpage.activity-stream.showSponsored" = false;
"browser.newtabpage.activity-stream.system.showSponsored" = false;
"browser.newtabpage.activity-stream.showSponsoredTopSites" = false;
"browser.newtabpage.activity-stream.showWeather" = false;
# Disable Firefox's machine learning (AI) features
"browser.ml.enable" = false;
# For browser toolbox/live editing user CSS
"devtools.chrome.enabled" = true;
"devtools.debugger.remote-enabled" = true;
# Vertical tabs
"sidebar.verticalTabs" = true;
"sidebar.verticalTabs.dragToPinPromo.dismissed" = true;
# these are ordered right to left for some fucking reason
"browser.uiCustomization.navBarWhenVerticalTabs" = [
"unified-extensions-button"
"fxa-toolbar-menu-button"
"downloads-button"
"urlbar-container"
"stop-reload-button"
"forward-button"
"back-button"
];
};
bookmarks = {
force = true;
settings = [
{
name = "Nix sites";
toolbar = true;
bookmarks = [
{
name = "NixOS";
url = "https://nixos.org/";
}
{
name = "Home Manager Appendix A";
url = "https://nix-community.github.io/home-manager/options.xhtml";
}
];
}
];
};
search = {
force = true;
default = "google";
order = [
"google"
];
}; };
"widget.gtk.global-menu.enabled" = true;
"widget.gtk.global-menu.wayland.enabled" = true;
"browser.tabs.inTitlebar" = 0;
"extensions.pocket.enabled" = false;
"extensions.screenshots.disabled" = true;
"browser.topsites.contile.enabled" = false;
"browser.formfill.enable" = false;
"browser.search.suggest.enabled" = false;
"browser.search.suggest.enabled.private" = false;
"browser.urlbar.suggest.searches" = false;
"browser.urlbar.showSearchSuggestionsFirst" = false;
"browser.newtabpage.activity-stream.feeds.section.topstories" = false;
"browser.newtabpage.activity-stream.feeds.snippets" = false;
"browser.newtabpage.activity-stream.feeds.topsites" = false;
"browser.newtabpage.activity-stream.section.highlights.includePocket" = false;
"browser.newtabpage.activity-stream.section.highlights.includeBookmarks" = false;
"browser.newtabpage.activity-stream.section.highlights.includeDownloads" = false;
"browser.newtabpage.activity-stream.section.highlights.includeVisited" = false;
"browser.newtabpage.activity-stream.showSponsored" = false;
"browser.newtabpage.activity-stream.system.showSponsored" = false;
"browser.newtabpage.activity-stream.showSponsoredTopSites" = false;
"browser.newtabpage.activity-stream.showWeather" = false;
# Disable Firefox's machine learning (AI) features
"browser.ml.enable" = false;
# For browser toolbox/live editing user CSS
"devtools.chrome.enabled" = true;
"devtools.debugger.remote-enabled" = true;
# Vertical tabs
"sidebar.verticalTabs" = true;
"sidebar.verticalTabs.dragToPinPromo.dismissed" = true;
# these are ordered right to left for some fucking reason
"browser.uiCustomization.navBarWhenVerticalTabs" = [
"unified-extensions-button"
"fxa-toolbar-menu-button"
"downloads-button"
"urlbar-container"
"stop-reload-button"
"forward-button"
"back-button"
];
};
bookmarks = {
force = true;
settings = [
{
name = "Nix sites";
toolbar = true;
bookmarks = [
{
name = "NixOS";
url = "https://nixos.org/";
}
{
name = "Home Manager Appendix A";
url = "https://nix-community.github.io/home-manager/options.xhtml";
}
];
}
];
};
search = {
force = true;
default = "google";
order = [
"google"
];
}; };
}; };
}; };