2020-02-17 17:00:59 +04:00
|
|
|
{ config, pkgs, lib, ... }:
|
|
|
|
with import ../../support.nix { inherit lib config; };
|
|
|
|
let thm = config.themes.colors;
|
|
|
|
in {
|
2020-04-20 16:12:46 +04:00
|
|
|
environment.sessionVariables = {
|
|
|
|
MOZ_USE_XINPUT2 = "1";
|
|
|
|
MOZ_DBUS_REMOTE = "1";
|
|
|
|
};
|
2020-02-17 17:00:59 +04:00
|
|
|
home-manager.users.balsoft = lib.mkIf (config.deviceSpecific.goodMachine) {
|
|
|
|
home.packages = with pkgs; [
|
|
|
|
plasma-integration
|
|
|
|
plasma-browser-integration
|
|
|
|
];
|
|
|
|
home.file.".mozilla/native-messaging-hosts".source = pkgs.symlinkJoin {
|
|
|
|
name = "native-messaging-hosts";
|
|
|
|
paths = [
|
|
|
|
"${pkgs.plasma-browser-integration}/lib/mozilla/native-messaging-hosts"
|
|
|
|
];
|
|
|
|
};
|
|
|
|
programs.firefox = {
|
|
|
|
enable = true;
|
|
|
|
package = pkgs.firefox-wayland;
|
|
|
|
profiles.default = {
|
|
|
|
id = 0;
|
|
|
|
userChrome = ''
|
|
|
|
#TabsToolbar {
|
|
|
|
visibility: collapse;
|
|
|
|
}
|
|
|
|
toolbar#nav-bar, nav-bar-customization-target {
|
|
|
|
background: ${thm.bg} !important;
|
|
|
|
}
|
|
|
|
@-moz-document url("about:newtab") {
|
|
|
|
* { background-color: ${thm.bg} !important; }
|
|
|
|
}
|
|
|
|
'';
|
|
|
|
settings = {
|
|
|
|
"toolkit.legacyUserProfileCustomizations.stylesheets" = true;
|
|
|
|
|
|
|
|
"extensions.autoDisableScopes" = 0;
|
|
|
|
|
|
|
|
"browser.search.defaultenginename" = "Google";
|
|
|
|
"browser.search.selectedEngine" = "Google";
|
|
|
|
"browser.urlbar.placeholderName" = "Google";
|
|
|
|
"browser.search.region" = "US";
|
|
|
|
|
|
|
|
"browser.uidensity" = 1;
|
|
|
|
"browser.search.openintab" = true;
|
|
|
|
"xpinstall.signatures.required" = false;
|
|
|
|
"extensions.update.enabled" = false;
|
|
|
|
|
|
|
|
"font.name.monospace.x-western" = "Roboto Mono";
|
|
|
|
"font.name.sans-serif.x-western" = "Roboto";
|
|
|
|
"font.name.serif.x-western" = "Roboto Slab";
|
|
|
|
|
|
|
|
"browser.display.background_color" = thm.bg;
|
|
|
|
"browser.display.foreground_color" = thm.fg;
|
|
|
|
"browser.display.document_color_use" = 2;
|
|
|
|
"browser.anchor_color" = thm.fg;
|
|
|
|
"browser.visited_color" = thm.blue;
|
|
|
|
"browser.display.use_document_fonts" = true;
|
|
|
|
"pdfjs.disabled" = true;
|
|
|
|
"media.videocontrols.picture-in-picture.enabled" = true;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
extensions = with pkgs.nur.rycee.firefox-addons; [
|
|
|
|
torswitch
|
|
|
|
close-other-windows
|
|
|
|
adsum-notabs
|
|
|
|
ublock-origin
|
|
|
|
plasma-integration
|
|
|
|
];
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|