this actually might be it
This commit is contained in:
parent
5541426fd0
commit
906495daf0
5 changed files with 87 additions and 90 deletions
|
@ -1,83 +0,0 @@
|
|||
{ username, pkgs, ... }:
|
||||
|
||||
{
|
||||
environment.systemPackages = with pkgs; [
|
||||
tor-browser
|
||||
firefox-esr
|
||||
];
|
||||
|
||||
environment.persistence."/nix/config" = {
|
||||
users."${username}".directories = [
|
||||
".config/mozilla"
|
||||
];
|
||||
};
|
||||
|
||||
environment.etc."firefox/policies/policies.json" = {
|
||||
mode = "0444";
|
||||
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)"
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
'';
|
||||
};
|
||||
}
|
14
modules/nixos/multimedia/web/firefox/default.nix
Normal file
14
modules/nixos/multimedia/web/firefox/default.nix
Normal file
|
@ -0,0 +1,14 @@
|
|||
{ username, pkgs, ... }:
|
||||
|
||||
{
|
||||
environment.systemPackages = with pkgs; [
|
||||
tor-browser
|
||||
firefox-esr
|
||||
];
|
||||
|
||||
environment.persistence."/nix/config" = {
|
||||
users."${username}".directories = [
|
||||
".config/mozilla"
|
||||
];
|
||||
};
|
||||
}
|
62
modules/nixos/multimedia/web/firefox/policies.json
Normal file
62
modules/nixos/multimedia/web/firefox/policies.json
Normal file
|
@ -0,0 +1,62 @@
|
|||
{
|
||||
"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)"
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue