316 lines
11 KiB
Nix
316 lines
11 KiB
Nix
{ ... }: {
|
|
programs.librewolf = {
|
|
enable = true;
|
|
|
|
profiles.default = {
|
|
isDefault = true;
|
|
|
|
settings = {
|
|
"toolkit.telemetry.enabled" = false;
|
|
"toolkit.telemetry.unified" = false;
|
|
"toolkit.telemetry.server" = "";
|
|
"toolkit.telemetry.archive.enabled" = false;
|
|
"toolkit.telemetry.newProfilePing.enabled" = false;
|
|
"toolkit.telemetry.shutdownPingSender.enabled" = false;
|
|
"toolkit.telemetry.updatePing.enabled" = false;
|
|
"toolkit.telemetry.bhrPing.enabled" = false;
|
|
"toolkit.telemetry.firstShutdownPing.enabled" = false;
|
|
"toolkit.telemetry.coverage.opt-out" = true;
|
|
"toolkit.coverage.opt-out" = true;
|
|
"toolkit.coverage.endpoint.base" = "";
|
|
"browser.ping-centre.telemetry" = false;
|
|
"browser.newtabpage.activity-stream.feeds.telemetry" = false;
|
|
"browser.newtabpage.activity-stream.telemetry" = false;
|
|
|
|
"breakpad.reportURL" = "";
|
|
"browser.tabs.crashReporting.sendReport" = false;
|
|
"browser.crashReports.unsubmittedCheck.autoSubmit2" = false;
|
|
|
|
"app.shield.optoutstudies.enabled" = false;
|
|
"app.normandy.enabled" = false;
|
|
"app.normandy.api_url" = "";
|
|
"browser.safebrowsing.malware.enabled" = false;
|
|
"browser.safebrowsing.phishing.enabled" = false;
|
|
"browser.safebrowsing.blockedURIs.enabled" = false;
|
|
"browser.safebrowsing.provider.google4.gethashURL" = "";
|
|
"browser.safebrowsing.provider.google4.updateURL" = "";
|
|
"browser.safebrowsing.provider.google.gethashURL" = "";
|
|
"browser.safebrowsing.provider.google.updateURL" = "";
|
|
"browser.safebrowsing.downloads.remote.enabled" = false;
|
|
|
|
"geo.enabled" = false;
|
|
"geo.provider.network.url" = "";
|
|
|
|
"captivedetect.canonicalURL" = "";
|
|
"network.captive-portal-service.enabled" = false;
|
|
"network.connectivity-service.enabled" = false;
|
|
|
|
"privacy.resistFingerprinting" = true;
|
|
"privacy.resistFingerprinting.block_mozAddonManager" = true;
|
|
"privacy.window.maxInnerWidth" = 1600;
|
|
"privacy.window.maxInnerHeight" = 900;
|
|
"webgl.disabled" = true;
|
|
"webgl.enable-webgl2" = false;
|
|
"media.navigator.enabled" = false;
|
|
"media.navigator.video.enabled" = false;
|
|
|
|
"media.peerconnection.enabled" = false;
|
|
"media.peerconnection.ice.no_host" = true;
|
|
"media.peerconnection.ice.proxy_only_if_behind_proxy" = true;
|
|
"media.peerconnection.ice.default_address_only" = true;
|
|
|
|
"privacy.trackingprotection.enabled" = true;
|
|
"privacy.trackingprotection.pbmode.enabled" = true;
|
|
"privacy.trackingprotection.emailtracking.enabled" = true;
|
|
"privacy.trackingprotection.socialtracking.enabled" = true;
|
|
"privacy.trackingprotection.cryptomining.enabled" = true;
|
|
"privacy.trackingprotection.fingerprinting.enabled" = true;
|
|
"privacy.firstparty.isolate" = true;
|
|
"privacy.partition.network_state" = true;
|
|
"privacy.partition.serviceWorkers" = true;
|
|
|
|
"network.cookie.cookieBehavior" = 1;
|
|
"network.cookie.lifetimePolicy" = 0;
|
|
"browser.privatebrowsing.autostart" = false;
|
|
|
|
"signon.rememberSignons" = true;
|
|
"signon.autofillForms" = true;
|
|
"signon.generation.enabled" = true;
|
|
|
|
"network.trr.mode" = 3;
|
|
"network.trr.uri" = "https://dns.quad9.net/dns-query";
|
|
"network.trr.bootstrapAddress" = "9.9.9.9";
|
|
"network.dns.disableIPv6" = true;
|
|
"network.prefetch-next" = false;
|
|
"network.dns.disablePrefetch" = true;
|
|
"network.predictor.enabled" = false;
|
|
"network.http.speculative-parallel-limit" = 0;
|
|
"browser.places.speculativeConnect.enabled" = false;
|
|
"network.proxy.socks_remote_dns" = true;
|
|
|
|
"dom.security.https_only_mode" = true;
|
|
"dom.security.https_only_mode.upgrade_local" = true;
|
|
"security.mixed_content.block_display_content" = true;
|
|
"security.mixed_content.block_active_content" = true;
|
|
|
|
"security.tls.version.min" = 3;
|
|
"security.tls.version.max" = 4;
|
|
"security.tls.enable_0rtt_data" = false;
|
|
"security.OCSP.enabled" = 1;
|
|
"security.OCSP.require" = true;
|
|
"security.cert_pinning.enforcement_level" = 2;
|
|
"security.remote_settings.crlite_filters.enabled" = true;
|
|
"security.pki.crlite_mode" = 2;
|
|
|
|
"dom.battery.enabled" = false;
|
|
"dom.vr.enabled" = false;
|
|
"dom.vibrator.enabled" = false;
|
|
"dom.gamepad.enabled" = false;
|
|
"dom.netinfo.enabled" = false;
|
|
"dom.telephony.enabled" = false;
|
|
"dom.push.enabled" = false;
|
|
"dom.push.connection.enabled" = false;
|
|
"dom.push.serverURL" = "";
|
|
|
|
"browser.send_pings" = false;
|
|
"browser.sessionstore.privacy_level" = 2;
|
|
"browser.urlbar.speculativeConnect.enabled" = false;
|
|
"browser.urlbar.suggest.searches" = false;
|
|
"browser.search.suggest.enabled" = false;
|
|
"browser.formfill.enable" = false;
|
|
|
|
"toolkit.legacyUserProfileCustomizations.stylesheets" = true;
|
|
};
|
|
|
|
userChrome = ''
|
|
/* =============================================
|
|
Windows 95/98 Theme for LibreWolf
|
|
============================================= */
|
|
|
|
@import url("chrome://userchrome/content/userChrome.css");
|
|
|
|
* {
|
|
font-family: "W95FA", "Pixelated MS Sans Serif", "Arial", sans-serif !important;
|
|
font-size: 11px !important;
|
|
}
|
|
|
|
/* ---- Window chrome background ---- */
|
|
:root {
|
|
--win95-bg: #c0c0c0;
|
|
--win95-dark: #808080;
|
|
--win95-darker: #404040;
|
|
--win95-light: #ffffff;
|
|
--win95-highlight: #000080;
|
|
--win95-highlight-text: #ffffff;
|
|
--win95-border-light: #dfdfdf;
|
|
--win95-border-dark: #808080;
|
|
--win95-border-darker: #404040;
|
|
}
|
|
|
|
/* ---- Toolbar background ---- */
|
|
#navigator-toolbox,
|
|
#toolbar-menubar,
|
|
#TabsToolbar,
|
|
#nav-bar,
|
|
#PersonalToolbar {
|
|
background-color: var(--win95-bg) !important;
|
|
border-bottom: 1px solid var(--win95-dark) !important;
|
|
padding: 2px !important;
|
|
}
|
|
|
|
/* ---- Tab bar ---- */
|
|
#TabsToolbar {
|
|
background-color: var(--win95-bg) !important;
|
|
}
|
|
|
|
/* Active tab — raised bevel */
|
|
.tab-background:is([selected], [multiselected]) {
|
|
background-color: var(--win95-bg) !important;
|
|
border-top: 2px solid var(--win95-light) !important;
|
|
border-left: 2px solid var(--win95-light) !important;
|
|
border-right: 2px solid var(--win95-darker) !important;
|
|
border-bottom: none !important;
|
|
border-radius: 0 !important;
|
|
margin-bottom: -1px !important;
|
|
}
|
|
|
|
/* Inactive tab — sunken */
|
|
.tab-background:not([selected]) {
|
|
background-color: var(--win95-bg) !important;
|
|
border-top: 2px solid var(--win95-dark) !important;
|
|
border-left: 2px solid var(--win95-dark) !important;
|
|
border-right: 2px solid var(--win95-light) !important;
|
|
border-bottom: 1px solid var(--win95-dark) !important;
|
|
border-radius: 0 !important;
|
|
}
|
|
|
|
.tab-label {
|
|
color: #000000 !important;
|
|
}
|
|
|
|
.tab-background:is([selected]) .tab-label {
|
|
font-weight: bold !important;
|
|
}
|
|
|
|
/* ---- URL bar — sunken inset look ---- */
|
|
#urlbar,
|
|
#urlbar-background {
|
|
background-color: #ffffff !important;
|
|
border-top: 2px solid var(--win95-dark) !important;
|
|
border-left: 2px solid var(--win95-dark) !important;
|
|
border-right: 2px solid var(--win95-light) !important;
|
|
border-bottom: 2px solid var(--win95-light) !important;
|
|
border-radius: 0 !important;
|
|
color: #000000 !important;
|
|
}
|
|
|
|
#urlbar:focus-within #urlbar-background {
|
|
border-color: var(--win95-darker) !important;
|
|
outline: none !important;
|
|
}
|
|
|
|
/* ---- Buttons — raised bevel ---- */
|
|
toolbarbutton,
|
|
.toolbarbutton-1 {
|
|
background-color: var(--win95-bg) !important;
|
|
border-top: 2px solid var(--win95-light) !important;
|
|
border-left: 2px solid var(--win95-light) !important;
|
|
border-right: 2px solid var(--win95-darker) !important;
|
|
border-bottom: 2px solid var(--win95-darker) !important;
|
|
border-radius: 0 !important;
|
|
padding: 3px 5px !important;
|
|
color: #000000 !important;
|
|
}
|
|
|
|
toolbarbutton:hover,
|
|
.toolbarbutton-1:hover {
|
|
background-color: var(--win95-bg) !important;
|
|
}
|
|
|
|
toolbarbutton:active,
|
|
toolbarbutton[open="true"],
|
|
.toolbarbutton-1:active {
|
|
border-top: 2px solid var(--win95-darker) !important;
|
|
border-left: 2px solid var(--win95-darker) !important;
|
|
border-right: 2px solid var(--win95-light) !important;
|
|
border-bottom: 2px solid var(--win95-light) !important;
|
|
padding: 4px 4px 2px 6px !important;
|
|
}
|
|
|
|
/* ---- Title bar — classic Windows blue gradient ---- */
|
|
#titlebar {
|
|
background: linear-gradient(to right, #000080, #1084d0) !important;
|
|
color: #ffffff !important;
|
|
}
|
|
|
|
/* ---- Menu bar ---- */
|
|
#toolbar-menubar {
|
|
background-color: var(--win95-bg) !important;
|
|
}
|
|
|
|
menubar > menu {
|
|
color: #000000 !important;
|
|
border-radius: 0 !important;
|
|
padding: 2px 6px !important;
|
|
}
|
|
|
|
menubar > menu:hover,
|
|
menubar > menu[_moz-menuactive="true"] {
|
|
background-color: var(--win95-highlight) !important;
|
|
color: var(--win95-highlight-text) !important;
|
|
}
|
|
|
|
/* ---- Bookmarks toolbar ---- */
|
|
#PersonalToolbar toolbarbutton {
|
|
border: 1px solid transparent !important;
|
|
}
|
|
|
|
#PersonalToolbar toolbarbutton:hover {
|
|
border-top: 2px solid var(--win95-light) !important;
|
|
border-left: 2px solid var(--win95-light) !important;
|
|
border-right: 2px solid var(--win95-darker) !important;
|
|
border-bottom: 2px solid var(--win95-darker) !important;
|
|
}
|
|
|
|
/* ---- Sidebar ---- */
|
|
#sidebar-box {
|
|
background-color: var(--win95-bg) !important;
|
|
border-right: 2px solid var(--win95-dark) !important;
|
|
}
|
|
|
|
/* ---- Find bar ---- */
|
|
#FindToolbar {
|
|
background-color: var(--win95-bg) !important;
|
|
border-top: 2px solid var(--win95-dark) !important;
|
|
}
|
|
|
|
/* ---- Scrollbars ---- */
|
|
scrollbar {
|
|
background-color: var(--win95-bg) !important;
|
|
width: 16px !important;
|
|
}
|
|
|
|
scrollbar thumb {
|
|
background-color: var(--win95-bg) !important;
|
|
border-top: 2px solid var(--win95-light) !important;
|
|
border-left: 2px solid var(--win95-light) !important;
|
|
border-right: 2px solid var(--win95-darker) !important;
|
|
border-bottom: 2px solid var(--win95-darker) !important;
|
|
border-radius: 0 !important;
|
|
}
|
|
|
|
/* ---- Status bar ---- */
|
|
#statuspanel-label {
|
|
background-color: var(--win95-bg) !important;
|
|
border-top: 2px solid var(--win95-dark) !important;
|
|
color: #000000 !important;
|
|
border-radius: 0 !important;
|
|
}
|
|
|
|
* {
|
|
border-radius: 0 !important;
|
|
}
|
|
'';
|
|
};
|
|
};
|
|
}
|