dotfiles/modules/applications/firefox.nix

123 lines
4.4 KiB
Nix
Raw Normal View History

{ config, pkgs, lib, ... }:
2022-04-28 22:55:15 +00:00
{
config = lib.mkIf config.gui.enable {
2022-06-05 01:08:09 +00:00
unfreePackages = [ "onepassword-password-manager" "okta-browser-plugin" ];
2022-06-05 01:08:09 +00:00
home-manager.users.${config.user} = {
2022-05-07 18:24:00 +00:00
programs.firefox = {
enable = true;
extensions = with pkgs.nur.repos.rycee.firefox-addons; [
ublock-origin
vimium
multi-account-containers
facebook-container
temporary-containers
onepassword-password-manager
okta-browser-plugin
sponsorblock
reddit-enhancement-suite
bypass-paywalls-clean
markdownload
darkreader
snowflake
don-t-fuck-with-paste
i-dont-care-about-cookies
];
profiles.Profile0 = {
id = 0;
name = "default";
isDefault = true;
settings = {
"browser.aboutConfig.showWarning" = false;
"browser.warnOnQuit" = false;
"browser.quitShortcut.disabled" = true;
2022-05-07 18:24:00 +00:00
"browser.theme.dark-private-windows" = true;
"browser.toolbars.bookmarks.visibility" = "newtab";
"browser.startup.page" = 3; # Restore previous session
"browser.newtabpage.enabled" = false; # Make new tabs blank
"general.autoScroll" = true; # Drag middle-mouse to scroll
2022-05-14 21:36:38 +00:00
"services.sync.prefs.sync.general.autoScroll" =
false; # Prevent disabling autoscroll
2022-05-07 18:24:00 +00:00
"extensions.pocket.enabled" = false;
"toolkit.legacyUserProfileCustomizations.stylesheets" =
true; # Allow userChrome.css
2022-05-11 03:45:50 +00:00
"layout.css.color-mix.enabled" = true;
2022-05-07 18:24:00 +00:00
};
userChrome = ''
2022-05-08 01:05:11 +00:00
:root {
2022-07-26 03:36:06 +00:00
--focus-outline-color: ${config.colorscheme.base04} !important;
--toolbar-color: ${config.colorscheme.base07} !important;
2022-05-11 03:45:50 +00:00
--tab-min-height: 30px !important;
2022-05-08 01:05:11 +00:00
}
2022-05-07 18:24:00 +00:00
/* Background of tab bar */
.toolbar-items {
2022-07-26 03:36:06 +00:00
background-color: ${config.colorscheme.base00} !important;
2022-05-07 18:24:00 +00:00
}
/* Tabs themselves */
.tabbrowser-tab .tab-stack {
border-radius: 5px 5px 0 0;
overflow: hidden;
2022-07-26 03:36:06 +00:00
background-color: ${config.colorscheme.base00};
color: ${config.colorscheme.base06} !important;
2022-05-07 18:24:00 +00:00
}
.tab-content {
2022-05-11 03:45:50 +00:00
border-bottom: 2px solid color-mix(in srgb, var(--identity-tab-color) 40%, transparent);
border-radius: 5px 5px 0 0;
2022-07-26 03:36:06 +00:00
background-color: ${config.colorscheme.base00};
color: ${config.colorscheme.base06} !important;
2022-05-07 18:24:00 +00:00
}
.tab-content[selected=true] {
2022-05-11 03:45:50 +00:00
border-bottom: 2px solid color-mix(in srgb, var(--identity-tab-color) 25%, transparent);
2022-07-26 03:36:06 +00:00
background-color: ${config.colorscheme.base01} !important;
color: ${config.colorscheme.base07} !important;
2022-05-07 18:24:00 +00:00
}
/* Below tab bar */
#nav-bar {
2022-07-26 03:36:06 +00:00
background: ${config.colorscheme.base01} !important;
2022-05-07 18:24:00 +00:00
}
/* URL bar in nav bar */
2022-05-08 01:05:11 +00:00
#urlbar[focused=true] {
2022-07-26 03:36:06 +00:00
color: ${config.colorscheme.base07} !important;
background: ${config.colorscheme.base02} !important;
caret-color: ${config.colorscheme.base05} !important;
2022-05-08 01:05:11 +00:00
}
#urlbar:not([focused=true]) {
2022-07-26 03:36:06 +00:00
color: ${config.colorscheme.base04} !important;
background: ${config.colorscheme.base02} !important;
2022-05-08 01:05:11 +00:00
}
#urlbar ::-moz-selection {
2022-07-26 03:36:06 +00:00
color: ${config.colorscheme.base07} !important;
background: ${config.colorscheme.base02} !important;
2022-05-07 18:24:00 +00:00
}
2022-05-08 01:05:11 +00:00
#urlbar-input-container {
2022-07-26 03:36:06 +00:00
border: 1px solid ${config.colorscheme.base01} !important;
2022-05-08 01:05:11 +00:00
}
#urlbar-background {
2022-07-26 03:36:06 +00:00
background: ${config.colorscheme.base01} !important;
2022-05-08 01:05:11 +00:00
}
2022-05-07 18:24:00 +00:00
/* Text in URL bar */
2022-05-08 01:05:11 +00:00
#urlbar-input, #urlbar-scheme, .searchbar-textbox {
2022-07-26 03:36:06 +00:00
color: ${config.colorscheme.base07} !important;
2022-05-07 18:24:00 +00:00
}
'';
2022-05-08 01:05:11 +00:00
userContent = ''
@-moz-document url-prefix(about:blank) {
* {
2022-07-26 03:36:06 +00:00
background-color:${config.colorscheme.base01} !important;
2022-05-08 01:05:11 +00:00
}
}
'';
2022-05-07 18:24:00 +00:00
extraConfig = "";
};
};
2022-04-29 03:04:48 +00:00
};
2022-04-29 01:56:21 +00:00
};
2022-04-28 22:55:15 +00:00
}