From 326852c21ff9415062ab74b410c3633c6e916bed Mon Sep 17 00:00:00 2001 From: zack Date: Fri, 3 May 2024 14:35:21 -0400 Subject: [PATCH] add searx --- hosts/pluto/configuration.nix | 11 ++--------- hosts/pluto/services/searxng.nix | 15 +++++++++++++++ 2 files changed, 17 insertions(+), 9 deletions(-) create mode 100644 hosts/pluto/services/searxng.nix diff --git a/hosts/pluto/configuration.nix b/hosts/pluto/configuration.nix index 4beb686..f86ed9e 100644 --- a/hosts/pluto/configuration.nix +++ b/hosts/pluto/configuration.nix @@ -10,6 +10,8 @@ imports = [ # Include the results of the hardware scan. ./hardware-configuration.nix + + ./services/searxng.nix ]; # Bootloader. @@ -49,15 +51,6 @@ programs.zsh.enable = true; - services.searx = { - enable = true; - package = pkgs.searxng; - runInUwsgi = true; - uwsgiConfig = { - http = ":8080"; - }; - }; - programs.mosh.enable = true; users.mutableUsers = false; diff --git a/hosts/pluto/services/searxng.nix b/hosts/pluto/services/searxng.nix new file mode 100644 index 0000000..ae02c1f --- /dev/null +++ b/hosts/pluto/services/searxng.nix @@ -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"; + }; + }; +}