firefox extensions changed to per-profile

This commit is contained in:
Chaos 2023-02-09 15:29:56 +00:00
parent 05f3f1d353
commit 7c64fd7cf4
No known key found for this signature in database

View file

@ -4,15 +4,6 @@
... ...
}: let }: let
isGnome = nixosConfig.services.xserver.desktopManager.gnome.enable; isGnome = nixosConfig.services.xserver.desktopManager.gnome.enable;
in {
programs.firefox = {
enable = true;
package = pkgs.firefox.override {
cfg = {
# for gnome media shenanigans
enableGnomeExtensions = isGnome;
};
};
extensions = with nixosConfig.nur; [ extensions = with nixosConfig.nur; [
repos.rycee.firefox-addons.ublock-origin repos.rycee.firefox-addons.ublock-origin
repos.rycee.firefox-addons.stylus repos.rycee.firefox-addons.stylus
@ -25,10 +16,20 @@ in {
repos.rycee.firefox-addons.amp2html repos.rycee.firefox-addons.amp2html
repos.rycee.firefox-addons.a11ycss repos.rycee.firefox-addons.a11ycss
]; ];
in {
programs.firefox = {
enable = true;
package = pkgs.firefox.override {
cfg = {
# for gnome media shenanigans
enableGnomeExtensions = isGnome;
};
};
profiles."profile" = { profiles."profile" = {
name = "profile"; name = "profile";
id = 0; id = 0;
isDefault = true; isDefault = true;
inherit extensions;
settings = { settings = {
"app.normandy.first_run" = false; "app.normandy.first_run" = false;
"browser.search.region" = "GB"; "browser.search.region" = "GB";