From ea96e9d24cce2d636a0deb5e6e6a7868789f66f5 Mon Sep 17 00:00:00 2001 From: caem Date: Wed, 26 Jun 2024 15:21:42 +0200 Subject: [PATCH] firefox: Nix options search and fix chrome persist --- users/hu/packages/firefox.nix | 21 +++++++++++++++++---- users/hu/persist.nix | 2 +- 2 files changed, 18 insertions(+), 5 deletions(-) diff --git a/users/hu/packages/firefox.nix b/users/hu/packages/firefox.nix index 499fc18..4862394 100644 --- a/users/hu/packages/firefox.nix +++ b/users/hu/packages/firefox.nix @@ -134,8 +134,9 @@ profiles.shaga = { isDefault = true; search = { + force = true; default = "Gruble"; - order = [ "Gruble" "Nix Packages" "Home-manager options" ]; + order = [ "Gruble" "Nix Packages" "Nix Options" "Home-manager options" ]; engines = { "Gruble" = { urls = [ @@ -155,6 +156,7 @@ template = "https://search.nixos.org/packages"; params = [ { name = "type"; value = "packages"; } + { name = "channel"; value = "unstable"; } { name = "query"; value = "{searchTerms}"; } ]; }]; @@ -162,6 +164,19 @@ updateInterval = 7 * 24 * 60 * 60 * 1000; # Weekly definedAliases = [ "@np" ]; }; + "Nix Options" = { + urls = [{ + template = "https://search.nixos.org/options"; + params = [ + { name = "type"; value = "packages"; } + { name = "channel"; value = "unstable"; } + { name = "query"; value = "{searchTerms}"; } + ]; + }]; + iconUpdateURL = "https://nixos.org/favicon.png"; + updateInterval = 7 * 24 * 60 * 60 * 1000; # Weekly + definedAliases = [ "@no" ]; + }; "Home-manager options" = { urls = [{ template = "https://home-manager-options.extranix.com"; @@ -175,14 +190,13 @@ definedAliases = [ "@ho" ]; }; }; - force = true; }; extensions = with config.nur.repos.rycee.firefox-addons; [ ublock-origin image-search-options bitwarden - skip-redirect + translate-web-pages ]; settings = { @@ -329,7 +343,6 @@ "userChrome.theme.system_default" = true; "userChrome.theme.proton_color" = true; "userChrome.theme.proton_chrome" = true; - "userChrome.theme.fully_color" = true; "userChrome.theme.fully_dark" = true; "userChrome.decoration.cursor" = true; diff --git a/users/hu/persist.nix b/users/hu/persist.nix index 967669e..a2194c5 100644 --- a/users/hu/persist.nix +++ b/users/hu/persist.nix @@ -21,7 +21,7 @@ { directory = ".local/share/keyrings"; mode = "0700"; } ".local/share/direnv" ".mozilla/firefox/shaga/bookmarkbackups" - ".mozillla/firefox/shaga/chrome" + ".mozilla/firefox/shaga/chrome" ".config/Signal" ".config/vesktop" ".config/tutanota-desktop"