librewolf: Use multiple profiles

This commit is contained in:
Donovan Glover 2024-09-12 17:35:43 -04:00
parent c23d476f78
commit 8c6d46fcc3
No known key found for this signature in database
GPG Key ID: EA7408A77AE1BE65

View File

@ -11,26 +11,6 @@ let
inherit (lib) mkIf singleton;
inherit (nix-config.packages.${pkgs.system}) friendlyfox;
isPhone = nixosConfig.programs.calls.enable;
in
{
programs.librewolf = {
enable = true;
package = pkgs.librewolf.override {
cfg.speechSynthesisSupport = false;
};
profiles.default = {
extensions = with nix-config.packages.${pkgs.system}; [
ublock-origin
yomitan
redlib
new-tab-identity
showdex
invidious
];
search = {
force = true;
default = "Mullvad";
@ -101,6 +81,36 @@ in
"toolkit.legacyUserProfileCustomizations.stylesheets" = true;
};
isPhone = nixosConfig.programs.calls.enable;
in
{
programs.librewolf = {
enable = true;
package = pkgs.librewolf.override {
cfg.speechSynthesisSupport = false;
};
profiles = {
default = {
extensions = with nix-config.packages.${pkgs.system}; [
ublock-origin
yomitan
redlib
new-tab-identity
showdex
invidious
];
inherit settings search;
};
work = {
id = 1;
inherit settings search;
};
};
};