fix(modules/searx): fix undefined variable 'enable'
Some checks failed
Nix CI / build (push) Failing after 4m11s

This commit is contained in:
Rustam Efimov 2026-04-12 18:14:57 +03:00
parent 90483083ce
commit 181c0dfa6b
No known key found for this signature in database
2 changed files with 2 additions and 2 deletions

View file

@ -7,7 +7,7 @@ let
cfg = config.machine.searxng; cfg = config.machine.searxng;
in in
with lib; with lib;
mkIf enable { mkIf cfg.enable {
networking.firewall = { networking.firewall = {
allowedTCPPorts = [ cfg.port ]; allowedTCPPorts = [ cfg.port ];
}; };

View file

@ -8,7 +8,7 @@ let
cfg = config.machine.searxng; cfg = config.machine.searxng;
in in
with lib; with lib;
mkIf enable { mkIf cfg.enable {
services.searx = { services.searx = {
enable = true; enable = true;
redisCreateLocally = true; redisCreateLocally = true;