blob: b2d83f321dc814866046de735c0535f7ddb7bc67 (
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
|
{
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;
OverrideFirstRunPage = "";
OverridePostUpdatePage = "";
ExtensionSettings = let
ext = name: {
installation_mode = "force_installed";
install_url = "https://addons.mozilla.org/firefox/downloads/latest/${name}/latest.xpi";
};
in
lib.mkMerge [
{
"{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";
})
];
};
};
hjem.users."${config.collinux.user.name}".files = {
".mozilla/firefox/profiles.ini".text = ''
[Profile0]
Name=collin
IsRelative=1
Path=collin
Default=1
[General]
StartWithLastProfile=1
Version=2
'';
};
}
|