From ef0bbb96042980a841168ce322a5ddc149dbd885 Mon Sep 17 00:00:00 2001 From: notohh Date: Fri, 2 Feb 2024 07:53:33 -0500 Subject: [PATCH] firefox: add kagi yuki: disabled searxng system: more fmt flake.nix: readd alejandra --- flake.nix | 3 ++- home/firefox/default.nix | 16 +++++++++++++++- hosts/yuki/services/searxng.nix | 2 +- modules/system.nix | 17 +++++++++++------ 4 files changed, 29 insertions(+), 9 deletions(-) diff --git a/flake.nix b/flake.nix index eaef8c3..09e3d17 100755 --- a/flake.nix +++ b/flake.nix @@ -65,7 +65,7 @@ }; prettier = { enable = true; - files = "\\.(js|ts|md)$"; + files = "\\.(js|ts|md|json)$"; }; }; }; @@ -76,6 +76,7 @@ packages = with pkgs; [ git sops + alejandra yaml-language-server lua-language-server ]; diff --git a/home/firefox/default.nix b/home/firefox/default.nix index 7d6dc0f..6fede66 100644 --- a/home/firefox/default.nix +++ b/home/firefox/default.nix @@ -48,9 +48,23 @@ }; extraConfig = builtins.readFile ./user.js/betterfox.js; search = { - default = "SearXNG"; + default = "Kagi"; force = true; engines = { + "Kagi" = { + urls = [ + { + template = "https://kagi.com/search"; + params = [ + { + name = "q"; + value = "{searchTerms}"; + } + ]; + } + ]; + definedAliases = ["@g"]; + }; "SearXNG" = { urls = [ { diff --git a/hosts/yuki/services/searxng.nix b/hosts/yuki/services/searxng.nix index c7ce5d6..c3a7bd2 100644 --- a/hosts/yuki/services/searxng.nix +++ b/hosts/yuki/services/searxng.nix @@ -7,7 +7,7 @@ networking.firewall.allowedTCPPorts = [8100]; services.searx = { package = pkgs.searxng; - enable = true; + enable = false; runInUwsgi = false; environmentFile = config.sops.secrets.searxng-secret.path; limiterSettings = { diff --git a/modules/system.nix b/modules/system.nix index 6e12027..fe5e765 100644 --- a/modules/system.nix +++ b/modules/system.nix @@ -34,11 +34,16 @@ boot.kernelPackages = pkgs.linuxPackages_latest; - systemd.services.systemd-udevd.restartIfChanged = false; - systemd.extraConfig = '' - DefaultTimeoutStopSec=10s - ''; + systemd = { + services.systemd-udevd.restartIfChanged = false; - system.autoUpgrade.enable = false; - system.stateVersion = "23.05"; # no touchy + extraConfig = '' + DefaultTimeoutStopSec=10s + ''; + }; + + system = { + autoUpgrade.enable = false; + stateVersion = "23.05"; # no touchy + }; }