mirror of
https://github.com/CHN-beta/nixos.git
synced 2024-10-23 06:18:52 +08:00
packages.firefox: add default-pwa profile
This commit is contained in:
parent
57cdcaada2
commit
6fc2c61ca1
@ -25,45 +25,48 @@ inputs:
|
|||||||
{
|
{
|
||||||
enable = true;
|
enable = true;
|
||||||
nativeMessagingHosts = with inputs.pkgs; [ plasma-browser-integration uget-integrator firefoxpwa ];
|
nativeMessagingHosts = with inputs.pkgs; [ plasma-browser-integration uget-integrator firefoxpwa ];
|
||||||
# TODO: use fixed-version of plugins
|
|
||||||
policies.DefaultDownloadDirectory = "\${home}/Downloads";
|
policies.DefaultDownloadDirectory = "\${home}/Downloads";
|
||||||
profiles.default =
|
profiles = rec
|
||||||
{
|
{
|
||||||
extensions = with inputs.pkgs.firefox-addons;
|
default =
|
||||||
[
|
|
||||||
immersive-translate tampermonkey bitwarden cookies-txt dualsub firefox-color i-dont-care-about-cookies
|
|
||||||
metamask pakkujs switchyomega rsshub-radar rsspreview tabliss tree-style-tab ublock-origin wallabagger
|
|
||||||
wappalyzer grammarly plasma-integration zotero-connector
|
|
||||||
(buildFirefoxXpiAddon
|
|
||||||
{
|
|
||||||
pname = "pwas-for-firefox";
|
|
||||||
version = "2.12.1";
|
|
||||||
addonId = "firefoxpwa@filips.si";
|
|
||||||
url = "https://addons.mozilla.org/firefox/downloads/file/4293028/pwas_for_firefox-2.12.1.xpi";
|
|
||||||
sha256 = "sha256-m8BCAlQt37RxVnWw+2hIPnmofTicNa5OWkwXp/IXdWY=";
|
|
||||||
meta = {};
|
|
||||||
})
|
|
||||||
];
|
|
||||||
search = { default = "Google"; force = true; };
|
|
||||||
userChrome = builtins.readFile "${inputs.topInputs.lepton}/userChrome.css";
|
|
||||||
userContent = builtins.readFile "${inputs.topInputs.lepton}/userContent.css";
|
|
||||||
extraConfig = builtins.readFile "${inputs.topInputs.lepton}/user.js";
|
|
||||||
settings =
|
|
||||||
{
|
{
|
||||||
# general
|
extensions = with inputs.pkgs.firefox-addons;
|
||||||
"browser.search.region" = "CN";
|
[
|
||||||
"intl.locale.requested" = "zh-CN,en-US";
|
immersive-translate tampermonkey bitwarden cookies-txt dualsub firefox-color i-dont-care-about-cookies
|
||||||
"browser.aboutConfig.showWarning" = false;
|
metamask pakkujs switchyomega rsshub-radar rsspreview tabliss tree-style-tab ublock-origin wallabagger
|
||||||
"browser.bookmarks.showMobileBookmarks" = true;
|
wappalyzer grammarly plasma-integration zotero-connector
|
||||||
"browser.download.panel.shown" = true;
|
(buildFirefoxXpiAddon
|
||||||
"browser.download.useDownloadDir" = true;
|
{
|
||||||
"browser.newtab.extensionControlled" = true;
|
pname = "pwas-for-firefox";
|
||||||
"browser.toolbars.bookmarks.visibility" = "never";
|
version = "2.12.1";
|
||||||
# allow to apply userChrome.css
|
addonId = "firefoxpwa@filips.si";
|
||||||
"toolkit.legacyUserProfileCustomizations.stylesheets" = true;
|
url = "https://addons.mozilla.org/firefox/downloads/file/4293028/pwas_for_firefox-2.12.1.xpi";
|
||||||
# automatically enable extensions
|
sha256 = "sha256-m8BCAlQt37RxVnWw+2hIPnmofTicNa5OWkwXp/IXdWY=";
|
||||||
"extensions.autoDisableScopes" = 0;
|
meta = {};
|
||||||
|
})
|
||||||
|
];
|
||||||
|
search = { default = "Google"; force = true; };
|
||||||
|
userChrome = builtins.readFile "${inputs.topInputs.lepton}/userChrome.css";
|
||||||
|
userContent = builtins.readFile "${inputs.topInputs.lepton}/userContent.css";
|
||||||
|
extraConfig = builtins.readFile "${inputs.topInputs.lepton}/user.js";
|
||||||
|
settings =
|
||||||
|
{
|
||||||
|
# general
|
||||||
|
"browser.search.region" = "CN";
|
||||||
|
"intl.locale.requested" = "zh-CN,en-US";
|
||||||
|
"browser.aboutConfig.showWarning" = false;
|
||||||
|
"browser.bookmarks.showMobileBookmarks" = true;
|
||||||
|
"browser.download.panel.shown" = true;
|
||||||
|
"browser.download.useDownloadDir" = true;
|
||||||
|
"browser.newtab.extensionControlled" = true;
|
||||||
|
"browser.toolbars.bookmarks.visibility" = "never";
|
||||||
|
# allow to apply userChrome.css
|
||||||
|
"toolkit.legacyUserProfileCustomizations.stylesheets" = true;
|
||||||
|
# automatically enable extensions
|
||||||
|
"extensions.autoDisableScopes" = 0;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
default-pwa = default // { id = 1; };
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
home.file.".mozilla/firefox/profiles.ini".force = true;
|
home.file.".mozilla/firefox/profiles.ini".force = true;
|
||||||
|
Loading…
Reference in New Issue
Block a user