services/searxng: move sops into config block
This commit is contained in:
@@ -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;
|
||||
|
Reference in New Issue
Block a user