2022-06-06 23:08:01 +02:00
|
|
|
{ pkgs, ... }:
|
|
|
|
{
|
2023-06-14 18:41:21 +02:00
|
|
|
nixpkgs.config.packageOverrides = pkgs: {
|
|
|
|
nur = import (builtins.fetchTarball "https://github.com/nix-community/NUR/archive/master.tar.gz") {
|
|
|
|
inherit pkgs;
|
|
|
|
};
|
|
|
|
};
|
2022-06-06 23:08:01 +02:00
|
|
|
programs.firefox = {
|
|
|
|
# package = pkgs.librewolf;
|
|
|
|
# package = pkgs.firefox-wayland;
|
|
|
|
profiles."main" = {
|
|
|
|
id = 0;
|
|
|
|
bookmarks = {
|
|
|
|
"github".url = "https://github.com";
|
|
|
|
};
|
2023-08-01 23:54:21 +02:00
|
|
|
search.default = "DuckDuckGo";
|
2022-06-06 23:08:01 +02:00
|
|
|
settings = {
|
2022-07-05 22:37:58 +02:00
|
|
|
"extensions.pocket.enabled" = false;
|
|
|
|
#----
|
2022-06-06 23:08:01 +02:00
|
|
|
"browser.tabs.unloadOnLowMemory" = false;
|
|
|
|
# to enable userChrome
|
|
|
|
"toolkit.legacyUserProfileCustomizations.stylesheets" = true;
|
2022-07-05 22:37:58 +02:00
|
|
|
#----
|
|
|
|
"browser.newtabpage.activity-stream.showSponsoredTopSites" = false;
|
|
|
|
"browser.newtabpage.activity-stream.showSponsored" = false;
|
2023-06-14 18:41:21 +02:00
|
|
|
#----
|
|
|
|
"privacy.donottrackheader.enabled" = true;
|
|
|
|
# all cockies from cross-site blocked
|
|
|
|
"network.cookie.cookieBehavior" = 1;
|
|
|
|
# tracking in all tabs
|
|
|
|
"privacy.trackingprotection.enabled" = true;
|
|
|
|
"privacy.trackingprotection.cryptomining.enabled" = true;
|
|
|
|
"privacy.trackingprotection.fingerprinting.enabled" = true;
|
2023-08-01 23:54:21 +02:00
|
|
|
# new
|
|
|
|
# https everywhere
|
|
|
|
"dom.security.https_only_mode" = true;
|
|
|
|
"dom.security.https_only_mode_ever_enabled" = true;
|
|
|
|
# DNS over HTTPS disabled
|
|
|
|
"doh-rollout.disable-heuristics" = true;
|
|
|
|
"network.trr.mode" = 5;
|
|
|
|
# autofill (TODO)
|
|
|
|
"dom.forms.autocomplete.formautofill" = false;
|
|
|
|
"extensions.formautofill.creditCards.enabled" = false;
|
2022-06-06 23:08:01 +02:00
|
|
|
};
|
2023-06-14 18:41:21 +02:00
|
|
|
extensions = with pkgs.nur.repos.rycee.firefox-addons; [
|
2023-08-01 23:54:21 +02:00
|
|
|
ublock-origin
|
|
|
|
umatrix
|
|
|
|
browserpass
|
|
|
|
tree-style-tab
|
2023-06-14 18:41:21 +02:00
|
|
|
];
|
2022-06-06 23:08:01 +02:00
|
|
|
userChrome = ''
|
|
|
|
@namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul");
|
|
|
|
|
|
|
|
// about:config - toolkit.legacyUserProfileCustomizations.stylesheets
|
|
|
|
|
|
|
|
// tab-toolbar - all versions
|
|
|
|
#titlebar {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
#tabbrowser-tabs,
|
|
|
|
#TabsToolbar,
|
|
|
|
#main-window:not([tabsintitlebar="true"]) #TabsToolbar {
|
|
|
|
visibility: collapse !important;
|
|
|
|
}
|
|
|
|
// hide sidebar-headers (Tree Style Tab)
|
|
|
|
#sidebar-header {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
#sidebar-box[sidebarcommand="treestyletab_piro_sakura_ne_jp-sidebar-action"] #sidebar-header {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
#main-window[tabsintitlebar="true"]:not([extradragspace="true"]) #TabsToolbar > .toolbar-items {
|
|
|
|
opacity: 0;
|
|
|
|
pointer-events: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|