Refactor the whole configuration #1
3 changed files with 64 additions and 67 deletions
|
@ -1,62 +0,0 @@
|
||||||
{
|
|
||||||
"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,
|
|
||||||
"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)"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
61
modules/nixos/multimedia/web/firefox/policies.nix
Normal file
61
modules/nixos/multimedia/web/firefox/policies.nix
Normal file
|
@ -0,0 +1,61 @@
|
||||||
|
{
|
||||||
|
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;
|
||||||
|
}
|
||||||
|
];
|
||||||
|
Remove = [ "Bing" "Google" "DuckDuckGo" "Wikipedia (en)" ];
|
||||||
|
};
|
||||||
|
}
|
|
@ -4,11 +4,9 @@
|
||||||
|
|
||||||
{ cfgPath, ... }: final: prev: {
|
{ cfgPath, ... }: final: prev: {
|
||||||
firefox-esr = let
|
firefox-esr = let
|
||||||
intermediary-firefox-esr = prev.firefox-esr.overrideAttrs (oldAttrs: {
|
intermediary-firefox-esr = prev.firefox-esr.override {
|
||||||
postInstall = (oldAttrs.postInstall or "") + ''
|
extraPolicies = import "${cfgPath}/modules/nixos/multimedia/web/firefox/polcies.nix";
|
||||||
cp "${cfgPath}/modules/nixos/multimedia/web/firefox/polcies.json" $out/lib/distribution/policies.json
|
};
|
||||||
'';
|
|
||||||
});
|
|
||||||
|
|
||||||
sandboxed-firefox-esr = prev.mkNixPak {
|
sandboxed-firefox-esr = prev.mkNixPak {
|
||||||
config = { sloth, ... }: {
|
config = { sloth, ... }: {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue