From 73e6cfa67d60f651132889404a4f45bb0644a669 Mon Sep 17 00:00:00 2001 From: "Thomas A. Christensen II" <25492070+MillironX@users.noreply.github.com> Date: Sat, 18 Oct 2025 08:32:43 -0500 Subject: [PATCH 1/5] config (firefox): Replace Mozilla built-in Perplexity with my own Mozilla has added Perplexity as a default search engine in Firefox now, with special promotions and flare. I take inspiration from their configuration to make the Perplexity integration better, but remove all the promotional garbage. --- programs/firefox.nix | 31 ++++++++++++++++++++++++++++--- 1 file changed, 28 insertions(+), 3 deletions(-) diff --git a/programs/firefox.nix b/programs/firefox.nix index 819415d..a9d00fd 100644 --- a/programs/firefox.nix +++ b/programs/firefox.nix @@ -101,9 +101,31 @@ updateInterval = 24 * 60 * 60 * 1000; # every day definedAliases = [ "@mxs" ]; }; - "Perplexity" = { - urls = - [{ template = "https://www.perplexity.ai/?q={searchTerms}"; }]; + # Since Firefox added their own Perplexity integration, I can no + # longer call this profile "Perplexity." To fix this, we'll pretend + # to use Perplexity Pro. This profile has a much handier alias, plus + # removes the "vendor code" from all queries. + "Perplexity Pro" = { + urls = [ + { + rels = [ "results" ]; + type = "text/html"; + template = "https://www.perplexity.ai/search"; + params = [{ + name = "q"; + value = "{searchTerms}"; + }]; + } + { + rels = [ "suggestions" ]; + type = "application/x-suggestions+json"; + template = "https://suggest.perplexity.ai/suggest"; + params = [{ + name = "q"; + value = "{searchTerms}"; + }]; + } + ]; icon = "https://www.perplexity.ai/favicon.ico"; updateInterval = 7 * 24 * 60 * 60 * 1000; definedAliases = [ "@pxt" ]; @@ -128,6 +150,9 @@ updateInterval = 24 * 60 * 60 * 1000; # every day definedAliases = [ "@kg" ]; }; + + perplexity.metaData.hidden = true; + # Based on which bangs I use, I should also add (in no particular order): # - Dockerhub # - WineHQ From 8dbc98339ade9a216657a3158ac2aa5a77d2f4c1 Mon Sep 17 00:00:00 2001 From: "Thomas A. Christensen II" <25492070+MillironX@users.noreply.github.com> Date: Sat, 18 Oct 2025 08:33:21 -0500 Subject: [PATCH 2/5] config (firefox): Remove all the default search engines --- programs/firefox.nix | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/programs/firefox.nix b/programs/firefox.nix index a9d00fd..751e7ff 100644 --- a/programs/firefox.nix +++ b/programs/firefox.nix @@ -151,6 +151,13 @@ definedAliases = [ "@kg" ]; }; + # Hide search engines that I don't use/only use via bangs + google.metaData.hidden = true; + bing.metaData.hidden = true; + amazondotcom-us.metaData.hidden = true; + ddg.metaData.hidden = true; + ebay.metaData.hidden = true; + wikipedia.metaData.hidden = true; perplexity.metaData.hidden = true; # Based on which bangs I use, I should also add (in no particular order): From 146ab7e9b2f72b8e9013a5d0dd1f03e6666ca4d4 Mon Sep 17 00:00:00 2001 From: "Thomas A. Christensen II" <25492070+MillironX@users.noreply.github.com> Date: Sat, 18 Oct 2025 08:33:51 -0500 Subject: [PATCH 3/5] config (firefox): Replace Perplexity link with One45 --- programs/firefox.nix | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/programs/firefox.nix b/programs/firefox.nix index 751e7ff..520a4ef 100644 --- a/programs/firefox.nix +++ b/programs/firefox.nix @@ -220,13 +220,16 @@ label = "Vault"; baseDomain = "vault.millironx.com"; } - { - url = "https://www.perplexity.ai/"; - label = "perplexity"; - } { url = "https://www.vet.k-state.edu/academics/student-faculty-handbook/"; + label = "KSU CVM Student-Faculty Handbook"; + baseDomain = "www.vet.k-state.edu"; + } + { + url = "https://ksu.one45.com"; + label = "One45"; + baseDomain = "ksu.one45.com"; } ]; "browser.shopping.experience2023.active" = false; From 74689028c2439db83c3670882e36aa8a2a3bddf5 Mon Sep 17 00:00:00 2001 From: "Thomas A. Christensen II" <25492070+MillironX@users.noreply.github.com> Date: Sat, 18 Oct 2025 08:40:09 -0500 Subject: [PATCH 4/5] shell (desktop): add Zed config editing aliases Zed has a lot of settings, but it is impossible to change them to experiment with when managed by home-manager. So I often find myself removing the link, changing a setting, then going to change it in home-manager and switching to the new generation. Add shell aliases to simplify that process entirely. --- homes/desktop.nix | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/homes/desktop.nix b/homes/desktop.nix index 980d220..2a0790c 100644 --- a/homes/desktop.nix +++ b/homes/desktop.nix @@ -32,7 +32,19 @@ (texlive.combine { inherit (texlive) scheme-basic latex-bin latexmk; }) custom-pkgs.ark ]; - shellAliases = { code = "codium"; }; + shellAliases = { + code = "codium"; + zunlink = '' + readlink ~/.config/zed/settings.json > ~/.config/zed/hm-settings-location && + rm ~/.config/zed/settings.json && + cp $(< ~/.config/zed/hm-settings-location) ~/.config/zed/settings.json && + chmod u+w ~/.config/zed/settings.json + ''; + zrelink = '' + rm -f ~/.config/zed/settings.json && + ln -s $(< ~/.config/zed/hm-settings-location) ~/.config/zed/settings.json + ''; + }; }; services = { syncthing.enable = true; }; } From e1cb461f918e13998fdf8cb9d9f68a845e790d35 Mon Sep 17 00:00:00 2001 From: "Thomas A. Christensen II" <25492070+MillironX@users.noreply.github.com> Date: Sat, 18 Oct 2025 08:41:27 -0500 Subject: [PATCH 5/5] config (zed): use "minimal" agent profile by default --- programs/zed.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/programs/zed.nix b/programs/zed.nix index cb1d619..44994ce 100644 --- a/programs/zed.nix +++ b/programs/zed.nix @@ -24,6 +24,7 @@ provider = "zed.dev"; model = "claude-3-7-sonnet"; }; + default_profile = "minimal"; }; buffer_font_family = "FiraCode Nerd Font"; buffer_font_size = 11;