feat(browsers): move firefox addons into own file

This commit is contained in:
Felix Schröter 2023-04-12 21:13:33 +02:00
parent 0bf8a6b336
commit 9e0a89e55d
Signed by: felschr
GPG key ID: 671E39E6744C807D
3 changed files with 23 additions and 32 deletions

View file

@ -2,7 +2,8 @@
with lib;
let
inherit (pkgs.nur.repos.rycee) firefox-addons;
firefox-addons = pkgs.nur.repos.rycee.firefox-addons
// (import ./firefoxAddons.nix { inherit pkgs lib; });
prefer-dark-theme =
config.gtk.gtk3.extraConfig.gtk-application-prefer-dark-theme;
@ -94,21 +95,6 @@ let
"extensions.pocket.enabled" = false;
};
zotero-connector = firefox-addons.buildFirefoxXpiAddon rec {
pname = "zotero-connector";
version = "5.0.107";
addonId = "zotero@chnm.gmu.edu";
url =
"https://download.zotero.org/connector/firefox/release/Zotero_Connector-${version}.xpi";
sha256 = "sha256-RuAhWGvUhkog8SxzKhRwQQwzTQLzBKlHjSsFj9e25e4=";
meta = with lib; {
homepage = "https://www.zotero.org";
description = "Save references to Zotero from your web browser";
license = licenses.agpl3;
platforms = platforms.all;
};
};
commonExtensions = with firefox-addons; [
ublock-origin
bitwarden

View file

@ -0,0 +1,19 @@
{ pkgs, lib, ... }:
let inherit (pkgs.nur.repos.rycee) firefox-addons;
in {
zotero-connector = firefox-addons.buildFirefoxXpiAddon rec {
pname = "zotero-connector";
version = "5.0.107";
addonId = "zotero@chnm.gmu.edu";
url =
"https://download.zotero.org/connector/firefox/release/Zotero_Connector-${version}.xpi";
sha256 = "sha256-RuAhWGvUhkog8SxzKhRwQQwzTQLzBKlHjSsFj9e25e4=";
meta = with lib; {
homepage = "https://www.zotero.org";
description = "Save references to Zotero from your web browser";
license = licenses.agpl3;
platforms = platforms.all;
};
};
}

View file

@ -1,7 +1,8 @@
{ config, nixosConfig, pkgs, lib, ... }:
let
inherit (pkgs.nur.repos.rycee) firefox-addons;
firefox-addons = pkgs.nur.repos.rycee.firefox-addons
// (import ./firefoxAddons.nix { inherit pkgs lib; });
commonSettings = {
# Disable private browsing mode and restoring sessions
@ -22,21 +23,6 @@ let
"dom.push.serverURL" = "wss://push.services.mozilla.com/";
};
zotero-connector = firefox-addons.buildFirefoxXpiAddon rec {
pname = "zotero-connector";
version = "5.0.107";
addonId = "zotero@chnm.gmu.edu";
url =
"https://download.zotero.org/connector/firefox/release/Zotero_Connector-${version}.xpi";
sha256 = "sha256-RuAhWGvUhkog8SxzKhRwQQwzTQLzBKlHjSsFj9e25e4=";
meta = with lib; {
homepage = "https://www.zotero.org";
description = "Save references to Zotero from your web browser";
license = licenses.agpl3;
platforms = platforms.all;
};
};
commonExtensions = with firefox-addons; [
bitwarden
vimium