2022-05-06 03:01:56 +00:00
|
|
|
{ config, pkgs, lib, ... }:
|
2022-04-28 22:55:15 +00:00
|
|
|
|
|
|
|
{
|
2022-05-06 03:01:56 +00:00
|
|
|
config = lib.mkIf config.gui.enable {
|
|
|
|
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.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
|
|
|
|
"extensions.pocket.enabled" = false;
|
|
|
|
"toolkit.legacyUserProfileCustomizations.stylesheets" =
|
|
|
|
true; # Allow userChrome.css
|
|
|
|
};
|
|
|
|
userChrome = ''
|
|
|
|
@namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul");
|
|
|
|
/* Background of tab bar */
|
|
|
|
.toolbar-items {
|
|
|
|
background-color: ${config.gui.colorscheme.base00} !important;
|
|
|
|
}
|
|
|
|
/* Tabs themselves */
|
|
|
|
.tabbrowser-tab .tab-stack {
|
|
|
|
border-radius: 5px 5px 0 0;
|
|
|
|
overflow: hidden;
|
|
|
|
}
|
|
|
|
.tab-content {
|
|
|
|
background-color: ${config.gui.colorscheme.base00} !important;
|
|
|
|
color: ${config.gui.colorscheme.base06} !important;
|
|
|
|
}
|
|
|
|
.tab-content[selected=true] {
|
|
|
|
background-color: ${config.gui.colorscheme.base01} !important;
|
|
|
|
color: ${config.gui.colorscheme.base07} !important;
|
|
|
|
}
|
|
|
|
/* Below tab bar */
|
|
|
|
#nav-bar {
|
|
|
|
background: ${config.gui.colorscheme.base01} !important;
|
|
|
|
}
|
|
|
|
/* URL bar in nav bar */
|
|
|
|
#urlbar-background {
|
|
|
|
background: ${config.gui.colorscheme.base02} !important;
|
|
|
|
}
|
|
|
|
/* Text in URL bar */
|
|
|
|
#urlbar-input, #urlbar-scheme,
|
|
|
|
.searchbar-textbox {
|
|
|
|
color: ${config.gui.colorscheme.base07} !important;
|
|
|
|
}
|
|
|
|
'';
|
|
|
|
userContent = "";
|
|
|
|
extraConfig = "";
|
|
|
|
};
|
|
|
|
|
|
|
|
};
|
|
|
|
|
2022-04-29 03:04:48 +00:00
|
|
|
gtk = {
|
|
|
|
enable = true;
|
2022-05-07 18:24:00 +00:00
|
|
|
theme =
|
|
|
|
config.services.xserver.displayManager.lightdm.greeters.gtk.theme;
|
2022-04-29 03:04:48 +00:00
|
|
|
};
|
|
|
|
};
|
2022-04-29 01:56:21 +00:00
|
|
|
|
|
|
|
# Required for setting GTK theme (for preferred-color-scheme in browser)
|
|
|
|
services.dbus.packages = [ pkgs.dconf ];
|
|
|
|
programs.dconf.enable = true;
|
2022-04-29 03:04:48 +00:00
|
|
|
|
2022-04-29 01:56:21 +00:00
|
|
|
};
|
|
|
|
|
2022-04-28 22:55:15 +00:00
|
|
|
}
|