blob: f2daf4380e34cf614dc4f3e3d62213f04efaca77 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
|
{
pkgs,
lib,
config,
...
}: let
cfg = config.collinux.desktop.programs.firefox;
in
lib.mkIf cfg.enable {
programs.firefox = {
enable = true;
policies = {
PasswordManagerEnabled = false; # use bitwarden instead
DisableAccounts = true;
DisablePocket = true;
DisplayBookmarksToolbar = "always";
OverrideFirstRunPage = "";
OverridePostUpdatePage = "";
NewTabPage = false;
Preferences = let
opt = Value: {
inherit Value;
Status = "locked";
};
in {
"toolkit.legacyUserProfileCustomizations.stylesheets" = opt true;
"browser.tabs.inTitlebar" = opt 0;
"browser.tabs.hoverPreview.enabled" = opt 0;
"browser.tabs.loadBookmarksInTabs" = opt true;
"accessibility.force_disabled" = opt 1;
"browser.compactmode.show" = opt true;
"browser.uidensity" = opt 1;
"media.webspeech.synth.enabled" = opt false; # im not disabled
"media.webspeech.synth.dont_notify_on_error" = opt true;
};
ExtensionSettings = let
ext = name: {
installation_mode = "force_installed";
install_url = "https://addons.mozilla.org/firefox/downloads/latest/${name}/latest.xpi";
};
in
{
"{446900e4-71c2-419f-a6a7-df9c091e268b}" = ext "bitwarden-password-manager";
"uBlock0@raymondhill.net" = ext "uBlock0@raymondhill.net";
"addon@darkreader.org" = ext "addon@darkreader.org";
}
// (lib.optionalAttrs (cfg.theme == "catppuccin") {
"{88b098c8-19be-421e-8ffa-85ddd1f3f004}" = ext "catppuccin-mocha-blue";
})
// (lib.optionalAttrs (cfg.extensions.zotero.enable) {
"zotero@chnm.gmu.edu" = {
installation_mode = "force_installed";
install_url = "https://download.zotero.org/connector/firefox/release/Zotero_Connector-5.0.181.xpi";
};
});
};
};
services.speechd.enable = lib.mkForce false; # gets installed by firefox, but we don't need it
}
|