services/searxng: add environmentFile option
This commit is contained in:
@@ -18,11 +18,18 @@ in
|
||||
{
|
||||
options.searxng = {
|
||||
enable = mkEnableOption "Enables searxng module";
|
||||
|
||||
environmentFile = mkOption {
|
||||
type = types.path;
|
||||
default = null;
|
||||
description = "Path of encrypted environment file containing secrets for the searxng config";
|
||||
example = "../secrets/searxng.env";
|
||||
};
|
||||
};
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
sops.secrets."SEARXNG_SECRETS" = {
|
||||
sopsFile = ../../secrets/${config.networking.hostName}_searxng.env;
|
||||
sopsFile = cfg.environmentFile;
|
||||
format = "binary";
|
||||
owner = "searxng";
|
||||
mode = 0400;
|
||||
|
Reference in New Issue
Block a user