add profile with webaudio enabled
This commit is contained in:
7
home-manager/firefox/config/tracking-webaudio.nix
Normal file
7
home-manager/firefox/config/tracking-webaudio.nix
Normal file
@@ -0,0 +1,7 @@
|
||||
{
|
||||
# Disable webaudio API
|
||||
# Disable webaudio API to prevent browser fingerprinting. See Mozilla Bug #1288359
|
||||
# (https://bugzilla.mozilla.org/show_bug.cgi?id=1288359). This can break web apps,
|
||||
# like Discord, which rely on the API.
|
||||
"dom.webaudio.enabled" = true;
|
||||
}
|
||||
@@ -66,5 +66,4 @@
|
||||
# Firefox 102 introduced query parameter stripping like utm_source. Enabled by
|
||||
# default with Strict Enhanced Tracking Protection.
|
||||
"privacy.query_stripping" = true;
|
||||
|
||||
}
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
{ pkgs, lib, ... }:
|
||||
let merge = lib.foldr (a: b: a // b) { };
|
||||
search = {
|
||||
let
|
||||
merge = lib.foldr (a: b: a // b) { };
|
||||
search = {
|
||||
default = "DuckDuckGo";
|
||||
force = true;
|
||||
engines = {
|
||||
@@ -12,9 +13,10 @@ search = {
|
||||
"DuckDuckGo" = {
|
||||
urls = [{
|
||||
template = "https://duckduckgo.com";
|
||||
params = [
|
||||
{ name = "q"; value = "{searchTerms}"; }
|
||||
];
|
||||
params = [{
|
||||
name = "q";
|
||||
value = "{searchTerms}";
|
||||
}];
|
||||
}];
|
||||
definedAliases = [ ",d" ];
|
||||
};
|
||||
@@ -22,8 +24,14 @@ search = {
|
||||
urls = [{
|
||||
template = "https://search.nixos.org/packages";
|
||||
params = [
|
||||
{ name = "type"; value = "packages"; }
|
||||
{ name = "query"; value = "{searchTerms}"; }
|
||||
{
|
||||
name = "type";
|
||||
value = "packages";
|
||||
}
|
||||
{
|
||||
name = "query";
|
||||
value = "{searchTerms}";
|
||||
}
|
||||
];
|
||||
}];
|
||||
definedAliases = [ ",n" ];
|
||||
@@ -31,23 +39,25 @@ search = {
|
||||
"Wikipedia" = {
|
||||
urls = [{
|
||||
template = "https://en.wikipedia.org/wiki/Special:Search";
|
||||
params = [
|
||||
{ name = "search"; value = "{searchTerms}"; }
|
||||
];
|
||||
params = [{
|
||||
name = "search";
|
||||
value = "{searchTerms}";
|
||||
}];
|
||||
}];
|
||||
definedAliases = [ ",w" ];
|
||||
};
|
||||
"GitHub" = {
|
||||
urls = [{
|
||||
template = "https://github.com/search";
|
||||
params = [
|
||||
{ name = "q"; value = "{searchTerms}"; }
|
||||
];
|
||||
params = [{
|
||||
name = "q";
|
||||
value = "{searchTerms}";
|
||||
}];
|
||||
}];
|
||||
definedAliases = [ ",gh" ];
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
in {
|
||||
programs.firefox = {
|
||||
enable = true;
|
||||
@@ -70,7 +80,8 @@ in {
|
||||
"ebay@search.mozilla.org".installation_mode = "blocked";
|
||||
"wikipedia@search.mozilla.org".installation_mode = "blocked";
|
||||
"{5cd68d86-8324-4ab2-9e0d-3afcc60bee5f}" = {
|
||||
install_url = "https://addons.mozilla.org/firefox/downloads/latest/animated-pekora-dark-theme/latest.xpi";
|
||||
install_url =
|
||||
"https://addons.mozilla.org/firefox/downloads/latest/animated-pekora-dark-theme/latest.xpi";
|
||||
installation_mode = "force_installed";
|
||||
};
|
||||
};
|
||||
@@ -78,6 +89,34 @@ in {
|
||||
profiles = {
|
||||
default = {
|
||||
name = "privacy-friendly";
|
||||
settings = merge [
|
||||
(import ./config/preferences.nix)
|
||||
(import ./config/browser-features.nix)
|
||||
(import ./config/privacy.nix)
|
||||
(import ./config/tracking.nix)
|
||||
(import ./config/tracking-webaudio.nix)
|
||||
(import ./config/security.nix)
|
||||
];
|
||||
userChrome = ''
|
||||
/* Hide tab bar. Used with Sidebery */
|
||||
#TabsToolbar {
|
||||
visibility: collapse !important;
|
||||
}
|
||||
'';
|
||||
extensions = with pkgs.nur.repos.rycee.firefox-addons; [
|
||||
clearurls
|
||||
darkreader
|
||||
sponsorblock
|
||||
ublock-origin
|
||||
keepassxc-browser
|
||||
youtube-nonstop
|
||||
sidebery
|
||||
];
|
||||
inherit search;
|
||||
};
|
||||
enable-webaudio = {
|
||||
name = "privacy-but-enable-webaudio";
|
||||
id = 2;
|
||||
settings = merge [
|
||||
(import ./config/preferences.nix)
|
||||
(import ./config/browser-features.nix)
|
||||
@@ -127,4 +166,14 @@ in {
|
||||
};
|
||||
};
|
||||
};
|
||||
xdg.desktopEntries = {
|
||||
firefox-enable-webaudio = {
|
||||
name = "Firefox - enabled webaudio";
|
||||
genericName = "Web Browser";
|
||||
exec = "firefox -P privacy-but-enable-webaudio %U";
|
||||
terminal = false;
|
||||
categories = [ "Application" "Network" "WebBrowser" ];
|
||||
mimeType = [ "text/html" "text/xml" ];
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user