From 8d1a8f35b65974fff5075898839806ad5e3b6fd2 Mon Sep 17 00:00:00 2001 From: iFargle Date: Sat, 1 Jul 2023 22:24:37 +0900 Subject: [PATCH] Add firefox config --- common/dotfiles/firefox.nix | 43 +++++++++++++++++++++++++++++++++++++ users/albert/home.nix | 1 + 2 files changed, 44 insertions(+) create mode 100644 common/dotfiles/firefox.nix diff --git a/common/dotfiles/firefox.nix b/common/dotfiles/firefox.nix new file mode 100644 index 00000000..e71ed1ce --- /dev/null +++ b/common/dotfiles/firefox.nix @@ -0,0 +1,43 @@ +{ config, pkgs, ... }: { + programs.firefox = { + enable = true; + profiles.default = { + settings = { + "browser.startup.homepage" = "https://searx.sysctl.io"; + "browser.search.region" = "US"; + "browser.search.isUS" = false; + "distribution.searchplugins.defaultLocale" = "en-US"; + "general.useragent.locale" = "en-US"; + "browser.bookmarks.showMobileBookmarks" = false; + "browser.newtabpage.pinned" = [{ + title = "Blank"; + url = "about:blank"; + }]; + }; + search.force = true; + search.order = [ + "DuckDuckGo" + ]; + search.engines = { + "Nix Packages" = { + urls = [{ + template = "https://search.nixos.org/packages"; + params = [ + { name = "type"; value = "packages"; } + { name = "query"; value = "{searchTerms}"; } + ]; + }]; + + icon = "${pkgs.nixos-icons}/share/icons/hicolor/scalable/apps/nix-snowflake.svg"; + definedAliases = [ "@np" ]; + }; + + "NixOS Wiki" = { + urls = [{ template = "https://nixos.wiki/index.php?search={searchTerms}"; }]; + iconUpdateURL = "https://nixos.wiki/favicon.png"; + updateInterval = 24 * 60 * 60 * 1000; # every day + definedAliases = [ "@nw" ]; + }; + }; + }; +} \ No newline at end of file diff --git a/users/albert/home.nix b/users/albert/home.nix index 6d1973fd..2178e791 100644 --- a/users/albert/home.nix +++ b/users/albert/home.nix @@ -5,5 +5,6 @@ ../../common/dotfiles/git.nix ../../common/dotfiles/neovim.nix ../../common/dotfiles/bash.nix + ../../common/dotfiles/firefox.nix ]; } \ No newline at end of file