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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
| { pkgs, ... }: {
programs.firefox = {
enable = true;
policies = {
DisablePocket = true;
DisplayBookmarksToolbar = true;
DontCheckDefaultBrowser = true;
OfferToSaveLogins = false;
NoDefaultBookmarks = true;
PasswordManagerEnable = false;
#DNSOverHTTPS = {
# Enabled = true;
#};
};
profiles.yh = {
id = 0;
isDefault = true;
name = "yh";
settings = {
"browser.search.separatePrivateDefault" = false;
"browser.search.separatePrivateDefault.ui.enabled" = true;
#"browser.startup.homepage" = "http://dashboard.internal.flake.sh/";
"network.trr.mode" = 5;
"dom.security.https_first" = true;
#"dom.security.https_only_mode" = true;
#"dom.security.https_only_mode_ever_enabled" = true;
};
#extraConfig = builtins.readFile ./user.js/betterfox.js;
search = {
default = "cnbing";
force = true;
engines = {
"cnbing" = {
urls = [
{
template = "https://cn.bing.com";
params = [
{
name = "q";
value = "{searchTerms}";
}
];
}
];
definedAliases = [ "@g" ];
};
"SearXNG" = {
urls = [
{
template = "http://100.108.113.89:8100";
params = [
{
name = "q";
value = "{searchTerms}";
}
];
}
];
definedAliases = [ "@sx" ];
};
"Nix Packages" = {
urls = [
{
template = "https://search.nixos.org/packages";
params = [
{
name = "type";
value = "packages";
}
{
name = "query";
value = "{searchTerms}";
}
];
}
];
icon = "''${pkgs.nixos-icons}/share/icons/hicolor/scalable/apps/nix-snowflake.svg";
definedAliases = [ "@np" ];
};
"Bing".metaData.hidden = true;
"Google".metaData.hidden = true;
"Amazon.com".metaData.hidden = true;
"eBay".metaData.hidden = true;
"DuckDuckGo".metaData.hidden = false;
};
};
extensions = with pkgs.nur.repos.rycee.firefox-addons; [
# https://nur.nix-community.org/repos/rycee/
# security
bitwarden
#ublock-origin
#canvasblocker
floccus
gesturefy
#leisure
#darkreader
#mal-sync
#stylus
firefox-color
#utility
#new-tab-override
#libredirect
#sponsorblock
#return-youtube-dislikes
#misc
];
};
};
/*
xdg.mimeApps = {
enable = true;
defaultApplications = {
"x-scheme-handler/discord-409416265891971072" = ["discord-409416265891971072.desktop"];
"x-scheme-handler/discord-402572971681644545" = ["discord-402572971681644545.desktop"];
"x-scheme-handler/discord-696343075731144724" = ["discord-696343075731144724.desktop"];
"x-scheme-handler/http" = ["firefox.desktop"];
"x-scheme-handler/https" = ["firefox.desktop"];
"x-scheme-handler/chrome" = ["firefox.desktop"];
"text/html" = ["firefox.desktop"];
"application/x-extension-htm" = ["firefox.desktop"];
"application/x-extension-html" = ["firefox.desktop"];
"application/x-extension-shtml" = ["firefox.desktop"];
"application/xhtml+xml" = ["firefox.desktop"];
"application/x-extension-xhtml" = ["firefox.desktop"];
"application/x-extension-xht" = ["firefox.desktop"];
};
};
*/
}
|