aboutsummaryrefslogtreecommitdiff
path: root/home-manager/home/programs/firefox/default.nix
diff options
context:
space:
mode:
authorjerpo <spleefer6@yandex.ru>2023-08-05 17:26:30 +0500
committerjerpo <spleefer6@yandex.ru>2023-08-05 17:26:30 +0500
commite8ae745437124ee10c4d39ad3ca9a4ba4219add4 (patch)
treed00a8dad7580142a9054c05d22bcc57baa0aed0b /home-manager/home/programs/firefox/default.nix
maybe this will work
Diffstat (limited to 'home-manager/home/programs/firefox/default.nix')
-rw-r--r--home-manager/home/programs/firefox/default.nix80
1 files changed, 80 insertions, 0 deletions
diff --git a/home-manager/home/programs/firefox/default.nix b/home-manager/home/programs/firefox/default.nix
new file mode 100644
index 0000000..58bd4c9
--- /dev/null
+++ b/home-manager/home/programs/firefox/default.nix
@@ -0,0 +1,80 @@
+{ pkgs, config, inputs, ... }:
+let
+ nur = import inputs.nurpkgs {
+ inherit pkgs;
+ nurpkgs = pkgs;
+ };
+ extensions = with nur.repos.rycee.firefox-addons; [
+ bitwarden
+ ghostery
+ switchyomega
+ sponsorblock
+ return-youtube-dislikes
+ ];
+ userConfig = builtins.readFile ./user.js;
+ configOverrides = ''
+
+ '';
+ extraConfig = userConfig + configOverrides;
+ engines = {
+ "Brave" = {
+ urls = [{ template = "https://search.brave.com/search?q={searchTerms}"; }];
+ iconUpdateURL = "https://cdn.search.brave.com/serp/v2/_app/immutable/assets/safari-pinned-tab.539899c7.svg";
+ updateInterval = 24 * 60 * 60 * 1000;
+ definedAliases = [ "!br" ];
+ };
+ "NixOS" = {
+ urls = [{ template = "https://search.nixos.org/packages?channel=unstable&from=0&size=50&sort=relevance&type=packages&query={searchTerms}"; }];
+ iconUpdateURL = "https://nixos.org/favicon.png";
+ updateInterval = 24 * 60 * 60 * 1000;
+ definedAliases = [ "!ns" ];
+ };
+ "HomeManager" = {
+ urls = [{ template = "https://mipmip.github.io/home-manager-option-search/?query={searchTerms}"; }];
+ iconUpdateURL = "https://github.com/mipmip/home-manager-option-search/blob/main/images/favicon.png";
+ updateInterval = 24 * 60 * 60 * 1000;
+ definedAliases = [ "!hs" ];
+ };
+ "ai question" = {
+ urls = [{ template = "https://iask.ai/?mode=question&q={searchTerms}"; }];
+ iconUpdateURL = "https://iask.ai/favicons/favicon-32x32-650bd8771fdea8866630408578e381cc.png?vsn=d";
+ updateInterval = 24 * 60 * 60 * 1000;
+ definedAliases = [ "!aq" ];
+ };
+ "ai forums" = {
+ urls = [{ template = "https://iask.ai/?mode=forums&q={searchTerms}"; }];
+ iconUpdateURL = "https://iask.ai/favicons/favicon-32x32-650bd8771fdea8866630408578e381cc.png?vsn=d";
+ updateInterval = 24 * 60 * 60 * 1000;
+ definedAliases = [ "!af" ];
+ };
+ "ai wiki" = {
+ urls = [{ template = "https://iask.ai/?mode=wiki&q={searchTerms}"; }];
+ iconUpdateURL = "https://iask.ai/favicons/favicon-32x32-650bd8771fdea8866630408578e381cc.png?vsn=d";
+ updateInterval = 24 * 60 * 60 * 1000;
+ definedAliases = [ "!aw" ];
+ };
+ "FastGPT" = {
+ urls = [{ template = "https://labs.kagi.com/fastgpt?query={searchTerms}"; }];
+ definedAliases = [ "!fq" ];
+ };
+ "NixWiki" = {
+ urls = [{ template = "https://nixos.wiki/index.php?search={searchTerms}&go=Go"; }];
+ iconUpdateURL = "https://nixos.org/favicon.png";
+ updateInterval = 24 * 60 * 60 * 1000;
+ definedAliases = [ "!nw" ];
+ };
+ };
+in
+{
+ programs.firefox = {
+ enable = true;
+ profiles.Betterfox = {
+ isDefault = true;
+ inherit extensions extraConfig;
+ search = {
+ inherit engines;
+ default = "Brave";
+ };
+ };
+ };
+}