blob: 98bc10771cc18ec55aabcbcd20398e244478e9d2 (
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
69
70
71
72
73
|
{
config,
lib,
inputs,
...
}: let
cfg = config.seth.programs.firefox.arkenfox;
in {
imports = [inputs.arkenfox.hmModules.arkenfox];
options.seth.programs.firefox.arkenfox = {
enable =
lib.mkEnableOption "Arkenfox settings for Firefox"
// {
default = config.seth.programs.firefox.enable;
};
};
config = lib.mkIf cfg.enable {
programs.firefox = {
arkenfox = {
enable = true;
version = "122.0";
};
profiles.arkenfox.arkenfox = let
enableSections = sections: lib.genAttrs sections (_: {enable = true;});
in
lib.recursiveUpdate {
enable = true;
# enable safe browsing
"0400"."0403"."browser.safebrowsing.downloads.remote.enabled".value = true;
# fix hulu
"1200"."1201"."security.ssl.require_safe_negotiation".value = false;
"2600"."2651"."browser.download.useDownloadDir" = {
enable = true;
value = true;
};
# disable rfp letterboxing
"4500"."4504"."privacy.resistFingerprinting.letterboxing".value = false;
"5000" = {
"5003"."signon.rememberSignons".enable = true;
# enable search autocomplete
"5021"."keyword.enabled".value = true;
};
} (enableSections [
"0100"
"0200"
"0300"
"0400"
"0600"
"0700"
"0800"
"0900"
"1000"
"1200"
"1600"
"1700"
"2000"
"2400"
"2600"
"2700"
"2800"
"4500"
]);
};
};
}
|