services/searxng: move sops into config block

This commit is contained in:
2025-09-01 00:04:06 -07:00
parent 91437cf5d8
commit 0d268a314d

View File

@@ -20,14 +20,14 @@ in
enable = mkEnableOption "Enables searxng module";
};
sops.secrets."SEARXNG_SECRETS" = {
sopsFile = ../../secrets/${config.networking.hostName}_searxng.env;
format = "binary";
owner = "searxng";
mode = 0400;
};
config = mkIf cfg.enable {
sops.secrets."SEARXNG_SECRETS" = {
sopsFile = ../../secrets/${config.networking.hostName}_searxng.env;
format = "binary";
owner = "searxng";
mode = 0400;
};
services.searx = {
enable = true;
package = pkgsUnstable.searxng;