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 = {
firefox = {
enable = true;
#package = pkgs.firefox-esr;
policies = {
DisableFirefoxStudies = true;
DisableFormHistory = true;
@ -46,10 +47,44 @@
"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;
NoDefaultBookmarks = true;
PasswordManagerEnabled = false;
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;
};
preferences = {

View File

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