hell n back
This commit is contained in:
parent
3ee6761b45
commit
cac7203033
45 changed files with 2988 additions and 177 deletions
98
modules/firefox/default.nix
Normal file
98
modules/firefox/default.nix
Normal file
|
|
@ -0,0 +1,98 @@
|
|||
{ inputs, lib, config, pkgs, ... }:
|
||||
with lib;
|
||||
let
|
||||
cfg = config.modules.eww;
|
||||
|
||||
in {
|
||||
options.modules.firefox = { enable = mkEnableOption "firefox"; };
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
programs.firefox = {
|
||||
profiles = {
|
||||
default = {
|
||||
enable = true;
|
||||
|
||||
# Install extensions from NUR
|
||||
extensions = with pkgs.nur.repos.rycee.firefox-addons; [
|
||||
decentraleyes
|
||||
ublock-origin
|
||||
clearurls
|
||||
sponsorblock
|
||||
darkreader
|
||||
h264ify
|
||||
df-youtube
|
||||
];
|
||||
|
||||
# Privacy about:config settings
|
||||
profiles.notus = {
|
||||
settings = {
|
||||
"browser.send_pings" = false;
|
||||
"browser.urlbar.speculativeConnect.enabled" = false;
|
||||
"dom.event.clipboardevents.enabled" = true;
|
||||
"media.navigator.enabled" = false;
|
||||
"network.cookie.cookieBehavior" = 1;
|
||||
"network.http.referer.XOriginPolicy" = 2;
|
||||
"network.http.referer.XOriginTrimmingPolicy" = 2;
|
||||
"beacon.enabled" = false;
|
||||
"browser.safebrowsing.downloads.remote.enabled" = false;
|
||||
"network.IDN_show_punycode" = true;
|
||||
"extensions.activeThemeID" = "firefox-compact-dark@mozilla.org";
|
||||
"app.shield.optoutstudies.enabled" = false;
|
||||
"dom.security.https_only_mode_ever_enabled" = true;
|
||||
"toolkit.legacyUserProfileCustomizations.stylesheets" = true;
|
||||
"browser.toolbars.bookmarks.visibility" = "never";
|
||||
"geo.enabled" = false;
|
||||
|
||||
# Disable telemetry
|
||||
"browser.newtabpage.activity-stream.feeds.telemetry" = false;
|
||||
"browser.ping-centre.telemetry" = false;
|
||||
"browser.tabs.crashReporting.sendReport" = false;
|
||||
"devtools.onboarding.telemetry.logged" = false;
|
||||
"toolkit.telemetry.enabled" = false;
|
||||
"toolkit.telemetry.unified" = false;
|
||||
"toolkit.telemetry.server" = "";
|
||||
|
||||
# Disable Pocket
|
||||
"browser.newtabpage.activity-stream.feeds.discoverystreamfeed" = false;
|
||||
"browser.newtabpage.activity-stream.feeds.section.topstories" = false;
|
||||
"browser.newtabpage.activity-stream.section.highlights.includePocket" = false;
|
||||
"browser.newtabpage.activity-stream.showSponsored" = false;
|
||||
"extensions.pocket.enabled" = false;
|
||||
|
||||
# Disable prefetching
|
||||
"network.dns.disablePrefetch" = true;
|
||||
"network.prefetch-next" = false;
|
||||
|
||||
# Disable JS in PDFs
|
||||
"pdfjs.enableScripting" = false;
|
||||
|
||||
# Harden SSL
|
||||
"security.ssl.require_safe_negotiation" = true;
|
||||
|
||||
# Extra
|
||||
"identity.fxaccounts.enabled" = false;
|
||||
"browser.search.suggest.enabled" = false;
|
||||
"browser.urlbar.shortcuts.bookmarks" = false;
|
||||
"browser.urlbar.shortcuts.history" = false;
|
||||
"browser.urlbar.shortcuts.tabs" = false;
|
||||
"browser.urlbar.suggest.bookmark" = false;
|
||||
"browser.urlbar.suggest.engines" = false;
|
||||
"browser.urlbar.suggest.history" = false;
|
||||
"browser.urlbar.suggest.openpage" = false;
|
||||
"browser.urlbar.suggest.topsites" = false;
|
||||
"browser.uidensity" = 1;
|
||||
"media.autoplay.enabled" = false;
|
||||
"toolkit.zoomManager.zoomValues" = ".8,.90,.95,1,1.1,1.2";
|
||||
|
||||
"privacy.firstparty.isolate" = true;
|
||||
"network.http.sendRefererHeader" = 0;
|
||||
};
|
||||
|
||||
# userChome.css to make it look better
|
||||
userChrome = buildins.readFile ./userChrome.css;
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
69
modules/firefox/userChrome.css
Normal file
69
modules/firefox/userChrome.css
Normal file
|
|
@ -0,0 +1,69 @@
|
|||
* {
|
||||
box-shadow: none !important;
|
||||
border: 0px solid !important;
|
||||
}
|
||||
|
||||
#tabbrowser-tabs {
|
||||
--user-tab-rounding: 8px;
|
||||
}
|
||||
|
||||
.tab-background {
|
||||
border-radius: var(--user-tab-rounding) var(--user-tab-rounding) 0px 0px !important;
|
||||
/* Connected */
|
||||
margin-block: 1px 0 !important;
|
||||
/* Connected */
|
||||
}
|
||||
|
||||
#scrollbutton-up,
|
||||
#scrollbutton-down {
|
||||
/* 6/10/2021 */
|
||||
border-top-width: 1px !important;
|
||||
border-bottom-width: 0 !important;
|
||||
}
|
||||
|
||||
.tab-background:is([selected], [multiselected]):-moz-lwtheme {
|
||||
--lwt-tabs-border-color: rgba(0, 0, 0, 0.5) !important;
|
||||
border-bottom-color: transparent !important;
|
||||
}
|
||||
|
||||
[brighttext='true'] .tab-background:is([selected], [multiselected]):-moz-lwtheme {
|
||||
--lwt-tabs-border-color: rgba(255, 255, 255, 0.5) !important;
|
||||
border-bottom-color: transparent !important;
|
||||
}
|
||||
|
||||
/* Container color bar visibility */
|
||||
.tabbrowser-tab[usercontextid]>.tab-stack>.tab-background>.tab-context-line {
|
||||
margin: 0px max(calc(var(--user-tab-rounding) - 3px), 0px) !important;
|
||||
}
|
||||
|
||||
#TabsToolbar,
|
||||
#tabbrowser-tabs {
|
||||
--tab-min-height: 29px !important;
|
||||
}
|
||||
|
||||
#main-window[sizemode='true'] #toolbar-menubar[autohide='true']+#TabsToolbar,
|
||||
#main-window[sizemode='true'] #toolbar-menubar[autohide='true']+#TabsToolbar #tabbrowser-tabs {
|
||||
--tab-min-height: 30px !important;
|
||||
}
|
||||
|
||||
#scrollbutton-up,
|
||||
#scrollbutton-down {
|
||||
border-top-width: 0 !important;
|
||||
border-bottom-width: 0 !important;
|
||||
}
|
||||
|
||||
#TabsToolbar,
|
||||
#TabsToolbar>hbox,
|
||||
#TabsToolbar-customization-target,
|
||||
#tabbrowser-arrowscrollbox {
|
||||
max-height: calc(var(--tab-min-height) + 1px) !important;
|
||||
}
|
||||
|
||||
#TabsToolbar-customization-target toolbarbutton>.toolbarbutton-icon,
|
||||
#TabsToolbar-customization-target .toolbarbutton-text,
|
||||
#TabsToolbar-customization-target .toolbarbutton-badge-stack,
|
||||
#scrollbutton-up,
|
||||
#scrollbutton-down {
|
||||
padding-top: 7px !important;
|
||||
padding-bottom: 6px !important;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue