imma try something entirely different
This commit is contained in:
parent
3445294f54
commit
829ecc17f0
6 changed files with 85 additions and 79 deletions
5
modules/home/caem/multimedia/default.nix
Normal file
5
modules/home/caem/multimedia/default.nix
Normal file
|
@ -0,0 +1,5 @@
|
|||
{ lib, ... }:
|
||||
|
||||
{
|
||||
imports = lib.getModuleImports ./.;
|
||||
}
|
5
modules/home/caem/multimedia/games/default.nix
Normal file
5
modules/home/caem/multimedia/games/default.nix
Normal file
|
@ -0,0 +1,5 @@
|
|||
{ ... }:
|
||||
|
||||
{
|
||||
|
||||
}
|
5
modules/home/caem/multimedia/web/default.nix
Normal file
5
modules/home/caem/multimedia/web/default.nix
Normal file
|
@ -0,0 +1,5 @@
|
|||
{ lib, ... }:
|
||||
|
||||
{
|
||||
imports = lib.getModuleImports ./.;
|
||||
}
|
68
modules/home/caem/multimedia/web/firefox.nix
Normal file
68
modules/home/caem/multimedia/web/firefox.nix
Normal file
|
@ -0,0 +1,68 @@
|
|||
{ pkgs, ... }:
|
||||
|
||||
{
|
||||
programs.firefox = {
|
||||
enable = true;
|
||||
package = pkgs.firefox-esr;
|
||||
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;
|
||||
}
|
||||
];
|
||||
Remove = [ "Bing" "Google" "DuckDuckGo" "Wikipedia (en)" ];
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
{
|
||||
environment.systemPackages = with pkgs; [
|
||||
tor-browser
|
||||
firefox-esr
|
||||
];
|
||||
|
||||
environment.persistence."/nix/config" = {
|
||||
|
@ -10,69 +10,4 @@
|
|||
".config/mozilla"
|
||||
];
|
||||
};
|
||||
|
||||
programs.firefox = {
|
||||
enable = true;
|
||||
package = pkgs.firefox-esr;
|
||||
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;
|
||||
}
|
||||
];
|
||||
Remove = [ "Bing" "Google" "DuckDuckGo" "Wikipedia (en)" ];
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
@ -73,18 +73,6 @@
|
|||
};
|
||||
};
|
||||
};
|
||||
|
||||
wrappedFirefox = prev.wrapFirefox (sandboxed-firefox-esr.config.env // {
|
||||
meta = prev.firefox-esr.meta;
|
||||
gtk3 = prev.libcanberra-gtk3;
|
||||
hasMozSystemDirPatch = true;
|
||||
}) {
|
||||
applicationName = "firefox-esr";
|
||||
pname = "firefox-esr";
|
||||
desktopName = "Firefox ESR";
|
||||
icon = "firefox";
|
||||
wmClass = "firefox-esr";
|
||||
};
|
||||
in
|
||||
wrappedFirefox;
|
||||
sandboxed-firefox-esr.config.env;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue