switch to librewolf & finish its theme
This commit is contained in:
parent
730f7fbceb
commit
719ec8949c
4 changed files with 143 additions and 165 deletions
|
|
@ -3,50 +3,47 @@
|
|||
{
|
||||
pkgs,
|
||||
config,
|
||||
lib,
|
||||
...
|
||||
}: {
|
||||
home.file.".mozilla/firefox/default/chrome/theme" = {
|
||||
source = ./chrome/theme;
|
||||
home.file.".librewolf/default/chrome/" = {
|
||||
source = ./chrome;
|
||||
force = true;
|
||||
recursive = true;
|
||||
};
|
||||
|
||||
home.file.".mozilla/firefox/default/chrome/userChrome.css" = {
|
||||
source = ./chrome/userChrome.css;
|
||||
force = true;
|
||||
};
|
||||
|
||||
home.file.".mozilla/firefox/default/chrome/colors.css" = {
|
||||
home.file.".librewolf/default/chrome/colors.css" = let
|
||||
color = pkgs.catppuccin.rgb.${config.catppuccin.flavor};
|
||||
accent = color.${config.catppuccin.accent};
|
||||
in {
|
||||
text = ''
|
||||
* {
|
||||
--accent: ${pkgs.catppuccin.rgb.${config.catppuccin.flavor}.${config.catppuccin.accent}};
|
||||
--rosewater: ${pkgs.catppuccin.rgb.${config.catppuccin.flavor}.rosewater};
|
||||
--flamingo: ${pkgs.catppuccin.rgb.${config.catppuccin.flavor}.flamingo};
|
||||
--pink: ${pkgs.catppuccin.rgb.${config.catppuccin.flavor}.pink};
|
||||
--mauve: ${pkgs.catppuccin.rgb.${config.catppuccin.flavor}.mauve};
|
||||
--red: ${pkgs.catppuccin.rgb.${config.catppuccin.flavor}.red};
|
||||
--maroon: ${pkgs.catppuccin.rgb.${config.catppuccin.flavor}.maroon};
|
||||
--peach: ${pkgs.catppuccin.rgb.${config.catppuccin.flavor}.peach};
|
||||
--yellow: ${pkgs.catppuccin.rgb.${config.catppuccin.flavor}.yellow};
|
||||
--green: ${pkgs.catppuccin.rgb.${config.catppuccin.flavor}.green};
|
||||
--teal: ${pkgs.catppuccin.rgb.${config.catppuccin.flavor}.teal};
|
||||
--sky: ${pkgs.catppuccin.rgb.${config.catppuccin.flavor}.sky};
|
||||
--sapphire: ${pkgs.catppuccin.rgb.${config.catppuccin.flavor}.sapphire};
|
||||
--blue: ${pkgs.catppuccin.rgb.${config.catppuccin.flavor}.blue};
|
||||
--lavender: ${pkgs.catppuccin.rgb.${config.catppuccin.flavor}.lavender};
|
||||
--text: ${pkgs.catppuccin.rgb.${config.catppuccin.flavor}.text};
|
||||
--subtext1: ${pkgs.catppuccin.rgb.${config.catppuccin.flavor}.subtext1};
|
||||
--subtext0: ${pkgs.catppuccin.rgb.${config.catppuccin.flavor}.subtext0};
|
||||
--overlay2: ${pkgs.catppuccin.rgb.${config.catppuccin.flavor}.overlay2};
|
||||
--overlay1: ${pkgs.catppuccin.rgb.${config.catppuccin.flavor}.overlay1};
|
||||
--overlay0: ${pkgs.catppuccin.rgb.${config.catppuccin.flavor}.overlay0};
|
||||
--surface2: ${pkgs.catppuccin.rgb.${config.catppuccin.flavor}.surface2};
|
||||
--surface1: ${pkgs.catppuccin.rgb.${config.catppuccin.flavor}.surface1};
|
||||
--surface0: ${pkgs.catppuccin.rgb.${config.catppuccin.flavor}.surface0};
|
||||
--base: ${pkgs.catppuccin.rgb.${config.catppuccin.flavor}.base};
|
||||
--mantle: ${pkgs.catppuccin.rgb.${config.catppuccin.flavor}.mantle};
|
||||
--crust: ${pkgs.catppuccin.rgb.${config.catppuccin.flavor}.crust};
|
||||
--accent: ${accent};
|
||||
--rosewater: ${color.rosewater};
|
||||
--flamingo: ${color.flamingo};
|
||||
--pink: ${color.pink};
|
||||
--mauve: ${color.mauve};
|
||||
--red: ${color.red};
|
||||
--maroon: ${color.maroon};
|
||||
--peach: ${color.peach};
|
||||
--yellow: ${color.yellow};
|
||||
--green: ${color.green};
|
||||
--teal: ${color.teal};
|
||||
--sky: ${color.sky};
|
||||
--sapphire: ${color.sapphire};
|
||||
--blue: ${color.blue};
|
||||
--lavender: ${color.lavender};
|
||||
--text: ${color.text};
|
||||
--subtext1: ${color.subtext1};
|
||||
--subtext0: ${color.subtext0};
|
||||
--overlay2: ${color.overlay2};
|
||||
--overlay1: ${color.overlay1};
|
||||
--overlay0: ${color.overlay0};
|
||||
--surface2: ${color.surface2};
|
||||
--surface1: ${color.surface1};
|
||||
--surface0: ${color.surface0};
|
||||
--base: ${color.base};
|
||||
--mantle: ${color.mantle};
|
||||
--crust: ${color.crust};
|
||||
}
|
||||
'';
|
||||
force = true;
|
||||
|
|
@ -91,9 +88,9 @@
|
|||
};
|
||||
};
|
||||
};
|
||||
firefox = {
|
||||
librewolf = {
|
||||
enable = true;
|
||||
package = pkgs.firefox.override {
|
||||
package = pkgs.librewolf.override {
|
||||
nativeMessagingHosts = with pkgs; [
|
||||
firefoxpwa
|
||||
];
|
||||
|
|
@ -105,39 +102,20 @@
|
|||
# Valid strings for installation_mode are "allowed", "blocked",
|
||||
# "force_installed" and "normal_installed".
|
||||
ExtensionSettings = {
|
||||
"*" = {
|
||||
"installation_mode" = "blocked";
|
||||
};
|
||||
"uBlock0@raymondhill.net" = {
|
||||
installation_mode = "allowed";
|
||||
};
|
||||
"gdpr@cavi.au.dk" = {
|
||||
installation_mode = "allowed";
|
||||
};
|
||||
"{5cce4ab5-3d47-41b9-af5e-8203eea05245}" = {
|
||||
installation_mode = "allowed";
|
||||
};
|
||||
"plasma-browser-integration@kde.org" = {
|
||||
installation_mode = "allowed";
|
||||
};
|
||||
"jid1-MnnxcxisBPnSXQ@jetpack" = {
|
||||
installation_mode = "allowed";
|
||||
};
|
||||
"firefoxpwa@filips.si" = {
|
||||
installation_mode = "allowed";
|
||||
};
|
||||
"sponsorBlocker@ajay.app" = {
|
||||
installation_mode = "allowed";
|
||||
};
|
||||
"{7a7a4a92-a2a0-41d1-9fd7-1e92480d612d}" = {
|
||||
installation_mode = "allowed";
|
||||
};
|
||||
"{aecec67f-0d10-4fa7-b7c7-609a2db280cf}" = {
|
||||
installation_mode = "allowed";
|
||||
};
|
||||
"{446900e4-71c2-419f-a6a7-df9c091e268b}" = {
|
||||
installation_mode = "allowed";
|
||||
};
|
||||
"*".installation_mode = "blocked";
|
||||
"uBlock0@raymondhill.net".installation_mode = "allowed";
|
||||
"gdpr@cavi.au.dk".installation_mode = "allowed";
|
||||
"{5cce4ab5-3d47-41b9-af5e-8203eea05245}".installation_mode = "allowed";
|
||||
"plasma-browser-integration@kde.org".installation_mode = "allowed";
|
||||
"jid1-MnnxcxisBPnSXQ@jetpack".installation_mode = "allowed";
|
||||
"firefoxpwa@filips.si".installation_mode = "allowed";
|
||||
"sponsorBlocker@ajay.app".installation_mode = "allowed";
|
||||
"{7a7a4a92-a2a0-41d1-9fd7-1e92480d612d}".installation_mode = "allowed";
|
||||
"{aecec67f-0d10-4fa7-b7c7-609a2db280cf}".installation_mode = "allowed";
|
||||
"{446900e4-71c2-419f-a6a7-df9c091e268b}".installation_mode = "allowed";
|
||||
"CanvasBlocker@kkapsner.de".installation_mode = "allowed";
|
||||
"shinigamieyes@shinigamieyes".installation_mode = "allowed";
|
||||
# "".installation_mode = "allowed";
|
||||
};
|
||||
DisableTelemetry = true;
|
||||
DisableFirefoxStudies = true;
|
||||
|
|
@ -176,6 +154,8 @@
|
|||
pwas-for-firefox
|
||||
control-panel-for-twitter
|
||||
bitwarden
|
||||
canvasblocker
|
||||
shinigami-eyes
|
||||
];
|
||||
settings = {
|
||||
"{7a7a4a92-a2a0-41d1-9fd7-1e92480d612d}".settings = {
|
||||
|
|
@ -240,16 +220,22 @@
|
|||
# Vertical tabs
|
||||
"sidebar.verticalTabs" = true;
|
||||
"sidebar.verticalTabs.dragToPinPromo.dismissed" = true;
|
||||
# these are ordered right to left for some fucking reason
|
||||
"browser.uiCustomization.navBarWhenVerticalTabs" = [
|
||||
"back-button"
|
||||
"forward-button"
|
||||
"stop-reload-button"
|
||||
"reload-button"
|
||||
"urlbar-container"
|
||||
"downloads-button"
|
||||
"unified-extensions-button"
|
||||
"fxa-toolbar-menu-button"
|
||||
"downloads-button"
|
||||
"urlbar-container"
|
||||
"stop-reload-button"
|
||||
"forward-button"
|
||||
"back-button"
|
||||
];
|
||||
|
||||
"privacy.resistFingerprinting" = false;
|
||||
"privacy.clearOnShutdown.history" = false;
|
||||
"privacy.clearOnShutdown.downloads" = false;
|
||||
"webgl.disabled" = false;
|
||||
"privacy.clearOnShutdown_v2.cookiesAndStorage" = false;
|
||||
};
|
||||
bookmarks = {
|
||||
force = true;
|
||||
|
|
@ -270,12 +256,58 @@
|
|||
}
|
||||
];
|
||||
};
|
||||
search = {
|
||||
search = let
|
||||
nixIcon = "${pkgs.colloid-icon-theme}/share/icons/Colloid/apps/scalable/nix-snowflake.svg";
|
||||
googleIcon = "${pkgs.colloid-icon-theme}/share/icons/Colloid/apps/scalable/google.svg";
|
||||
in {
|
||||
force = true;
|
||||
default = "google";
|
||||
order = [
|
||||
"google"
|
||||
];
|
||||
engines = {
|
||||
nix-packages = {
|
||||
name = "Nix Packages";
|
||||
urls = [
|
||||
{
|
||||
template = "https://search.nixos.org/packages";
|
||||
params = [
|
||||
{
|
||||
name = "type";
|
||||
value = "packages";
|
||||
}
|
||||
{
|
||||
name = "query";
|
||||
value = "{searchTerms}";
|
||||
}
|
||||
];
|
||||
}
|
||||
];
|
||||
|
||||
icon = nixIcon;
|
||||
definedAliases = ["@np"];
|
||||
};
|
||||
|
||||
nixos-wiki = {
|
||||
name = "NixOS Wiki";
|
||||
urls = [{template = "https://wiki.nixos.org/w/index.php?search={searchTerms}";}];
|
||||
icon = nixIcon;
|
||||
definedAliases = ["@nw"];
|
||||
};
|
||||
|
||||
google = {
|
||||
name = "Google";
|
||||
urls = [{template = "https://google.com/search?q={searchTerms}";}];
|
||||
icon = googleIcon;
|
||||
definedAliases = ["@go"];
|
||||
};
|
||||
|
||||
wikipedia = {
|
||||
name = "Wikipedia";
|
||||
urls = [{template = "https://en.wikipedia.org/w/index.php?search={searchTerms}";}];
|
||||
definedAliases = ["@wi"];
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue