mirror of
https://github.com/foo-dogsquared/nixos-config.git
synced 2025-01-31 04:58:01 +00:00
overlays/thunderbird-foodogsquared: init
This commit is contained in:
parent
459ce16ac6
commit
bdde0d97d9
@ -7,4 +7,5 @@
|
||||
ffmpeg-foodogsquared = import ./ffmpeg-foodogsquared;
|
||||
firefox-foodogsquared = import ./firefox-foodogsquared;
|
||||
blender-foodogsquared = import ./blender-foodogsquared;
|
||||
thunderbird-foodogsquared = import ./thunderbird-foodogsquared;
|
||||
}
|
||||
|
36
overlays/thunderbird-foodogsquared/default.nix
Normal file
36
overlays/thunderbird-foodogsquared/default.nix
Normal file
@ -0,0 +1,36 @@
|
||||
{ final, prev }:
|
||||
|
||||
|
||||
{
|
||||
thunderbird-foodogsquared = with prev; wrapThunderbird thunderbird {
|
||||
extraPolicies = {
|
||||
AppsAutoUpdate = false;
|
||||
DisableAppUpdate = false;
|
||||
|
||||
ExtensionSettings = let
|
||||
thunderbirdAddon = name:
|
||||
"https://addons.thunderbird.net/thunderbird/downloads/latest/${name}/latest.xpi";
|
||||
|
||||
extensions = {
|
||||
"uBlock0@raymondhill.net" = {
|
||||
installation_mode = "force_installed";
|
||||
installation_url = thunderbirdAddon "ublock-origin";
|
||||
};
|
||||
|
||||
"{e6696d02-466a-11e3-a162-04e36188709b}".installation_url = thunderbirdAddon "eds-calendar-integration";
|
||||
"quickfolders@curious.be".installation_url = thunderbirdAddon "quickfolders-tabbed-folders";
|
||||
};
|
||||
|
||||
applyInstallationMode = name: value:
|
||||
lib.nameValuePair name (value //
|
||||
(lib.optionalAttrs
|
||||
(! (lib.hasAttrByPath [ "installation_mode" ] value))
|
||||
{ installation_mode = "normal_installed"; }));
|
||||
in
|
||||
lib.mapAttrs' applyInstallationMode extensions;
|
||||
|
||||
OfferToSaveLoginsDefault = false;
|
||||
PasswordManagerEnabled = false;
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Reference in New Issue
Block a user