aboutsummaryrefslogtreecommitdiff
path: root/home-manager/general/programs/firefox/default.nix
diff options
context:
space:
mode:
authorspl3g <spleefer6@yandex.ru>2024-04-20 20:19:52 +0300
committerspl3g <spleefer6@yandex.ru>2025-05-01 14:56:39 +0300
commitec0e9896dcc0c88ef49d2b2bf8126498d3c2acec (patch)
tree4c5663196f4db68d371d2dbeba86c0e801d69044 /home-manager/general/programs/firefox/default.nix
parentbdb5ed429a6ee54fea4e32181b89e301a5e6b96e (diff)
delete old hm configuration
Diffstat (limited to 'home-manager/general/programs/firefox/default.nix')
-rw-r--r--home-manager/general/programs/firefox/default.nix109
1 files changed, 0 insertions, 109 deletions
diff --git a/home-manager/general/programs/firefox/default.nix b/home-manager/general/programs/firefox/default.nix
deleted file mode 100644
index be72299..0000000
--- a/home-manager/general/programs/firefox/default.nix
+++ /dev/null
@@ -1,109 +0,0 @@
-{ pkgs, config, inputs, ... }:
-let
- nur = import inputs.nurpkgs {
- inherit pkgs;
- nurpkgs = pkgs;
- };
- extensions = with nur.repos.rycee.firefox-addons; [
- bitwarden
- ublock-origin
- switchyomega
- sponsorblock
- return-youtube-dislikes
- firefox-color
- tampermonkey
- duckduckgo-privacy-essentials
- sidebery
- ];
- userConfig = builtins.readFile ./user.js;
- configOverrides = ''
- user_pref("browser.search.suggest.enabled", true);
- user_pref("mousewheel.default.delta_multiplier_y", 75);
- user_pref("network.captive-portal-service.enabled", true);
- user_pref("captivedetect.canonicalURL", "http://detectportal.firefox.com/canonical.html");
- user_pref("network.connectivity-service.enabled", true);
- '';
- 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" ];
- };
- "Kinopoisk" = {
- urls = [{ template = "https://www.kinopoisk.ru/index.php?kp_query={searchTerms}"; }];
- iconUpdateURL = "https://www.kinopoisk.ru/favicon.ico";
- updateInterval = 24 * 60 * 60 * 1000;
- definedAliases = [ "!ks" ];
- };
- "AnimeGo" = {
- urls = [{ template = "https://animego.org/search/all?q={searchTerms}"; }];
- iconUpdateURL = "https://animego.org/favicon-32x32.png";
- updateInterval = 24 * 60 * 60 * 1000;
- definedAliases = [ "!as" ];
- };
- };
- force = true;
-in
-{
- programs.firefox = {
- enable = false;
- profiles.nothing = {
- isDefault = false;
- id = 1;
- };
- profiles.Betterfox = {
- isDefault = true;
- inherit extensions extraConfig;
- search = {
- inherit engines force;
- default = "Brave";
- };
- };
- };
- home.file."chrome" = {
- source = ./userChrome.css;
- target = ".mozilla/firefox/Betterfox/chrome/userChrome.css";
- };
-}