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; }; } diff --git a/programs/firefox.nix b/programs/firefox.nix index 819415d..520a4ef 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,16 @@ updateInterval = 24 * 60 * 60 * 1000; # every day 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): # - Dockerhub # - WineHQ @@ -188,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; 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;