feat(services/searxng): add secret key
Some checks failed
Nix CI / build (push) Has been cancelled

This commit is contained in:
Rustam Efimov 2026-04-12 18:43:43 +03:00
parent 7e0dd5acd2
commit 4ad607bd49
No known key found for this signature in database
2 changed files with 1 additions and 4 deletions

View file

@ -16,9 +16,6 @@ mkIf cfg.enable {
}; };
}; };
sops.templates.searxng-env = { sops.templates.searxng-env = {
owner = config.users.users.matrix-synapse.name;
inherit (config.users.users.matrix-synapse) group;
restartUnits = [ "matrix-synapse.service" ];
content = '' content = ''
SEARXNG_SECRET_KEY=${config.sops.placeholder."searxng/secretKey"}; SEARXNG_SECRET_KEY=${config.sops.placeholder."searxng/secretKey"};
''; '';

View file

@ -13,7 +13,7 @@ mkIf cfg.enable {
enable = true; enable = true;
redisCreateLocally = true; redisCreateLocally = true;
domain = cfg.domain; domain = cfg.domain;
environmentFile = config.sops.secrets.searx.path; environmentFile = config.sops.templates.searxng-env.path;
# Rate limiting # Rate limiting
limiterSettings = { limiterSettings = {