add searx

This commit is contained in:
zack 2024-05-03 14:35:21 -04:00
parent 405a175d6b
commit 326852c21f
2 changed files with 17 additions and 9 deletions

View file

@ -10,6 +10,8 @@
imports = [ imports = [
# Include the results of the hardware scan. # Include the results of the hardware scan.
./hardware-configuration.nix ./hardware-configuration.nix
./services/searxng.nix
]; ];
# Bootloader. # Bootloader.
@ -49,15 +51,6 @@
programs.zsh.enable = true; programs.zsh.enable = true;
services.searx = {
enable = true;
package = pkgs.searxng;
runInUwsgi = true;
uwsgiConfig = {
http = ":8080";
};
};
programs.mosh.enable = true; programs.mosh.enable = true;
users.mutableUsers = false; users.mutableUsers = false;

View file

@ -0,0 +1,15 @@
{pkgs, ...}: {
services.searx = {
enable = true;
package = pkgs.searxng;
runInUwsgi = true;
settings = {
# server.port = 8080;
# server.bind_addres = "0.0.0.0";
server.secret_key = "6f6bf40218f239718cacbc2cd837792be828e840b48ac72a8e0a9d0ddb9d0b00";
};
uwsgiConfig = {
http = ":8080";
};
};
}