imma try something entirely different

This commit is contained in:
caem 2025-01-25 02:17:29 +01:00
parent 3445294f54
commit 829ecc17f0
Signed by: caem
GPG key ID: 69A830D03203405F
6 changed files with 85 additions and 79 deletions

View file

@ -0,0 +1,5 @@
{ lib, ... }:
{
imports = lib.getModuleImports ./.;
}

View file

@ -0,0 +1,5 @@
{ ... }:
{
}

View file

@ -0,0 +1,5 @@
{ lib, ... }:
{
imports = lib.getModuleImports ./.;
}

View 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)" ];
};
};
};
}

View file

@ -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)" ];
};
};
};
}

View file

@ -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;
}