chore(firefox): extensions are now configurable
This commit is contained in:
parent
6f0c1e447a
commit
cac5b8a130
1 changed files with 24 additions and 10 deletions
|
@ -8,6 +8,26 @@ in
|
||||||
options.modules.web.firefox = {
|
options.modules.web.firefox = {
|
||||||
enable = mkEnableOption "enable Firefox web browser";
|
enable = mkEnableOption "enable Firefox web browser";
|
||||||
|
|
||||||
|
baseExtensions = mkOption {
|
||||||
|
type = types.listOf types.package;
|
||||||
|
default = with pkgs.nur.repos.rycee.firefox-addons; [
|
||||||
|
browserpass
|
||||||
|
consent-o-matic
|
||||||
|
cookie-autodelete
|
||||||
|
darkreader
|
||||||
|
decentraleyes
|
||||||
|
tridactyl
|
||||||
|
ublock-origin
|
||||||
|
];
|
||||||
|
description = "Base Firefox Plugins to install";
|
||||||
|
};
|
||||||
|
|
||||||
|
optionalExtensions = mkOption {
|
||||||
|
type = types.listOf types.package;
|
||||||
|
default = [];
|
||||||
|
description = "Optional Firefox Plugins to install";
|
||||||
|
};
|
||||||
|
|
||||||
enableNixGL = mkOption {
|
enableNixGL = mkOption {
|
||||||
type = types.bool;
|
type = types.bool;
|
||||||
default = false;
|
default = false;
|
||||||
|
@ -44,7 +64,9 @@ in
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
programs.firefox = {
|
programs.firefox = let
|
||||||
|
allExtensions = cfg.baseExtensions ++ cfg.optionalExtensions;
|
||||||
|
in {
|
||||||
enable = true;
|
enable = true;
|
||||||
package = pkgs.wrapFirefox pkgs.firefox-unwrapped {
|
package = pkgs.wrapFirefox pkgs.firefox-unwrapped {
|
||||||
nativeMessagingHosts = [
|
nativeMessagingHosts = [
|
||||||
|
@ -57,15 +79,7 @@ in
|
||||||
id = 0;
|
id = 0;
|
||||||
name = "ephase";
|
name = "ephase";
|
||||||
isDefault = true;
|
isDefault = true;
|
||||||
extensions = with pkgs.nur.repos.rycee.firefox-addons; [
|
extensions = allExtensions;
|
||||||
browserpass
|
|
||||||
consent-o-matic
|
|
||||||
cookie-autodelete
|
|
||||||
darkreader
|
|
||||||
decentraleyes
|
|
||||||
tridactyl
|
|
||||||
ublock-origin
|
|
||||||
];
|
|
||||||
search = {
|
search = {
|
||||||
force = true;
|
force = true;
|
||||||
default = "DuckDuckGo";
|
default = "DuckDuckGo";
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue