firefox: add kagi

yuki: disabled searxng

system: more fmt

flake.nix: readd alejandra
This commit is contained in:
notohh 2024-02-02 07:53:33 -05:00
parent 80291272dc
commit ef0bbb9604
Signed by: notohh
GPG key ID: BD47506D475EE86D
4 changed files with 29 additions and 9 deletions

View file

@ -65,7 +65,7 @@
}; };
prettier = { prettier = {
enable = true; enable = true;
files = "\\.(js|ts|md)$"; files = "\\.(js|ts|md|json)$";
}; };
}; };
}; };
@ -76,6 +76,7 @@
packages = with pkgs; [ packages = with pkgs; [
git git
sops sops
alejandra
yaml-language-server yaml-language-server
lua-language-server lua-language-server
]; ];

View file

@ -48,9 +48,23 @@
}; };
extraConfig = builtins.readFile ./user.js/betterfox.js; extraConfig = builtins.readFile ./user.js/betterfox.js;
search = { search = {
default = "SearXNG"; default = "Kagi";
force = true; force = true;
engines = { engines = {
"Kagi" = {
urls = [
{
template = "https://kagi.com/search";
params = [
{
name = "q";
value = "{searchTerms}";
}
];
}
];
definedAliases = ["@g"];
};
"SearXNG" = { "SearXNG" = {
urls = [ urls = [
{ {

View file

@ -7,7 +7,7 @@
networking.firewall.allowedTCPPorts = [8100]; networking.firewall.allowedTCPPorts = [8100];
services.searx = { services.searx = {
package = pkgs.searxng; package = pkgs.searxng;
enable = true; enable = false;
runInUwsgi = false; runInUwsgi = false;
environmentFile = config.sops.secrets.searxng-secret.path; environmentFile = config.sops.secrets.searxng-secret.path;
limiterSettings = { limiterSettings = {

View file

@ -34,11 +34,16 @@
boot.kernelPackages = pkgs.linuxPackages_latest; boot.kernelPackages = pkgs.linuxPackages_latest;
systemd.services.systemd-udevd.restartIfChanged = false; systemd = {
systemd.extraConfig = '' services.systemd-udevd.restartIfChanged = false;
DefaultTimeoutStopSec=10s
'';
system.autoUpgrade.enable = false; extraConfig = ''
system.stateVersion = "23.05"; # no touchy DefaultTimeoutStopSec=10s
'';
};
system = {
autoUpgrade.enable = false;
stateVersion = "23.05"; # no touchy
};
} }