this might be it
This commit is contained in:
parent
69b39c7210
commit
fa9adad090
1 changed files with 67 additions and 61 deletions
|
@ -1,67 +1,73 @@
|
|||
{ ... }:
|
||||
{ config, ... }:
|
||||
|
||||
{
|
||||
programs.firefox = {
|
||||
enable = true;
|
||||
policies = {
|
||||
EnableTrackingProtection = {
|
||||
Value = true;
|
||||
Cryptomining = true;
|
||||
Fingerprinting = true;
|
||||
EmailTracking = true;
|
||||
Level = "strict";
|
||||
};
|
||||
DisableTelemetry = true;
|
||||
DisablePocket = true;
|
||||
DisableFirefoxStudies = true;
|
||||
DisableFirefoxAccounts = false;
|
||||
DisableAccounts = false;
|
||||
DontCheckDefaultBrowser = true;
|
||||
OverrideFirstRunPage = "";
|
||||
OverridePostUpdatePage = "";
|
||||
NoDefaultBookmarks = true;
|
||||
Cookies = {
|
||||
Behaviour = "reject-foreign";
|
||||
BehaviourPrivateBrowsing = "reject-foreign";
|
||||
};
|
||||
|
||||
UserMessaging = {
|
||||
WhatsNew = false;
|
||||
ExtensionRecommendations = false;
|
||||
FeatureRecommendations = false;
|
||||
UrlbarInterventions = false;
|
||||
SkipOnboarding = true;
|
||||
MoreFromMozilla = false;
|
||||
};
|
||||
|
||||
FirefoxHome = {
|
||||
Search = true;
|
||||
TopSites = true;
|
||||
SponsoredTopSites = false;
|
||||
Highlights = false;
|
||||
Pocket = false;
|
||||
SponsoredPocket = false;
|
||||
Snippets = false;
|
||||
Locked = true;
|
||||
};
|
||||
|
||||
SearchSuggestEnabled = false;
|
||||
ShowSearchSuggestionsFirst = false;
|
||||
NewTabPage = false;
|
||||
|
||||
SearchEngines = { # ESR only
|
||||
Add = [
|
||||
{
|
||||
Name = "Kagi";
|
||||
URLTemplate = "https://kagi.com/search?q={searchTerms}";
|
||||
Method = "GET";
|
||||
IconURL = "https://kagi.com/favicon.ico";
|
||||
Alias = "@k";
|
||||
Default = true;
|
||||
home.files = {
|
||||
"${config.xdg.configHome}/mozilla/firefox/policies/policies.json" = {
|
||||
text = ''
|
||||
{
|
||||
"policies": {
|
||||
"EnableTrackingProtection": {
|
||||
"Value": true,
|
||||
"Cryptomining": true,
|
||||
"Fingerprinting": true,
|
||||
"EmailTracking": true,
|
||||
"Level": "strict"
|
||||
},
|
||||
"DisableTelemetry": true,
|
||||
"DisablePocket": true,
|
||||
"DisableFirefoxStudies": true,
|
||||
"DisableFirefoxAccounts": false,
|
||||
"DisableAccounts": false,
|
||||
"DontCheckDefaultBrowser": true,
|
||||
"OverrideFirstRunPage": "",
|
||||
"OverridePostUpdatePage": "",
|
||||
"NoDefaultBookmarks": true,
|
||||
"Cookies": {
|
||||
"Behavior": "reject-foreign",
|
||||
"BehaviorPrivateBrowsing": "reject-foreign"
|
||||
},
|
||||
"UserMessaging": {
|
||||
"WhatsNew": false,
|
||||
"ExtensionRecommendations": false,
|
||||
"FeatureRecommendations": false,
|
||||
"UrlbarInterventions": false,
|
||||
"SkipOnboarding": true,
|
||||
"MoreFromMozilla": false
|
||||
},
|
||||
"FirefoxHome": {
|
||||
"Search": true,
|
||||
"TopSites": true,
|
||||
"SponsoredTopSites": false,
|
||||
"Highlights": false,
|
||||
"Pocket": false,
|
||||
"SponsoredPocket": false,
|
||||
"Snippets": false,
|
||||
"Locked": true
|
||||
},
|
||||
"SearchSuggestEnabled": false,
|
||||
"ShowSearchSuggestionsFirst": false,
|
||||
"NewTabPage": false,
|
||||
"SearchEngines": {
|
||||
"Add": [
|
||||
{
|
||||
"Name": "Kagi",
|
||||
"URLTemplate": "https://kagi.com/search?q={searchTerms}",
|
||||
"Method": "GET",
|
||||
"IconURL": "https://kagi.com/favicon.ico",
|
||||
"Alias": "@k",
|
||||
"Default": true
|
||||
}
|
||||
],
|
||||
"Remove": [
|
||||
"Bing",
|
||||
"Google",
|
||||
"DuckDuckGo",
|
||||
"Wikipedia (en)"
|
||||
]
|
||||
}
|
||||
}
|
||||
];
|
||||
Remove = [ "Bing" "Google" "DuckDuckGo" "Wikipedia (en)" ];
|
||||
};
|
||||
}
|
||||
'';
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue