configs/firefox: add some search stuff for esr.. but disable because

it's flaky!
This commit is contained in:
Aaron Bieber 2023-05-20 19:24:54 -06:00
parent 13f940e15b
commit 2b682733d3
No known key found for this signature in database
2 changed files with 37 additions and 2 deletions

View File

@ -4,6 +4,7 @@
programs = { programs = {
firefox = { firefox = {
enable = true; enable = true;
#package = pkgs.firefox-esr;
policies = { policies = {
DisableFirefoxStudies = true; DisableFirefoxStudies = true;
DisableFormHistory = true; DisableFormHistory = true;
@ -46,10 +47,44 @@
"https://addons.mozilla.org/firefox/downloads/latest/ublock-origin/latest.xpi"; "https://addons.mozilla.org/firefox/downloads/latest/ublock-origin/latest.xpi";
}; };
}; };
FirefoxHome = {
Search = false;
TopSites = false;
SponsoredTopSites = false;
Highlights = false;
Pocket = false;
SponsoredPocket = false;
Snippets = false;
Locked = true;
};
NetworkPrediction = true; NetworkPrediction = true;
NoDefaultBookmarks = true; NoDefaultBookmarks = true;
PasswordManagerEnabled = false; PasswordManagerEnabled = false;
SearchBar = "unified"; SearchBar = "unified";
SearchEngines = {
Add = [
{
Name = "Kagi";
URLTemplate = "https://kagi.com/search?q={searchTerms}";
Method = "GET";
Alias = "k";
}
{
Name = "OpenBSD.app";
URLTemplate = "https://openbsd.app/?search={searchTerms}";
Method = "GET";
}
];
Default = "Kagi";
Remove = [
"Google"
"Amazon.com"
"Bing"
"eBay"
"Wikipedia (en)"
"DuckDuckGo"
];
};
SearchSuggestEnabled = false; SearchSuggestEnabled = false;
}; };
preferences = { preferences = {

View File

@ -1,6 +1,6 @@
{ config, lib, pkgs, xinlib, ... }: { config, lib, pkgs, xinlib, ... }:
let let
firefox = (import ../configs/firefox.nix {inherit pkgs;}); firefox = import ../configs/firefox.nix { inherit pkgs; };
rage = pkgs.writeScriptBin "rage" (import ../bins/rage.nix { inherit pkgs; }); rage = pkgs.writeScriptBin "rage" (import ../bins/rage.nix { inherit pkgs; });
rpr = pkgs.writeScriptBin "rpr" rpr = pkgs.writeScriptBin "rpr"
(import ../bins/rpr.nix { inherit (pkgs) hut gh tea; }); (import ../bins/rpr.nix { inherit (pkgs) hut gh tea; });
@ -80,7 +80,7 @@ in with lib; {
(callPackage ../configs/helix.nix { }) (callPackage ../configs/helix.nix { })
]; ];
programs = {} // firefox.programs; programs = { } // firefox.programs;
systemd.user.services = systemd.user.services =
(lib.listToAttrs (builtins.map xinlib.jobToUserService jobs)) (lib.listToAttrs (builtins.map xinlib.jobToUserService jobs))