modules/searx: fix configFile type
This commit is contained in:
parent
b04fb3ffcd
commit
a1e6176cbf
|
@ -18,17 +18,12 @@ in
|
||||||
|
|
||||||
services.searx = {
|
services.searx = {
|
||||||
|
|
||||||
enable = mkOption {
|
enable = mkEnableOption
|
||||||
type = types.bool;
|
"the searx server. See https://github.com/asciimoo/searx";
|
||||||
default = false;
|
|
||||||
description = "
|
|
||||||
Whether to enable the Searx server. See https://github.com/asciimoo/searx
|
|
||||||
";
|
|
||||||
};
|
|
||||||
|
|
||||||
configFile = mkOption {
|
configFile = mkOption {
|
||||||
type = types.path;
|
type = types.nullOr types.path;
|
||||||
default = "";
|
default = null;
|
||||||
description = "
|
description = "
|
||||||
The path of the Searx server configuration file. If no file
|
The path of the Searx server configuration file. If no file
|
||||||
is specified, a default file is used (default config file has
|
is specified, a default file is used (default config file has
|
||||||
|
@ -72,7 +67,7 @@ in
|
||||||
User = "searx";
|
User = "searx";
|
||||||
ExecStart = "${cfg.package}/bin/searx-run";
|
ExecStart = "${cfg.package}/bin/searx-run";
|
||||||
};
|
};
|
||||||
} // (optionalAttrs (configFile != "") {
|
} // (optionalAttrs (configFile != null) {
|
||||||
environment.SEARX_SETTINGS_PATH = configFile;
|
environment.SEARX_SETTINGS_PATH = configFile;
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue