···67676868- `meta.mainProgram`: Changing this `meta` entry can lead to a package rebuild due to being used to determine the `NIX_MAIN_PROGRAM` environment variable.
69697070+- `searx` was updated to use `envsubst` instead of `sed` for parsing secrets from environment variables.
7171+ If your previous configuration included a secret reference like `server.secret_key = "@SEARX_SECRET_KEY@"`, you must migrate to the new envsubst syntax: `server.secret_key = "$SEARX_SECRET_KEY"`.
7272+7073- `versionCheckHook`: Packages that previously relied solely on `pname` to locate the program used to version check, but have a differing `meta.mainProgram` entry, might now fail.
71747275
+6-11
nixos/modules/services/networking/searx.nix
···2424 # write NixOS settings as JSON
2525 (
2626 umask 077
2727- cp --no-preserve=mode ${settingsFile} settings.yml
2727+ ${pkgs.envsubst}/bin/envsubst < ${settingsFile} > settings.yml
2828 )
2929-3030- # substitute environment variables
3131- env -0 | while IFS='=' read -r -d ''' n v; do
3232- sed "s#@$n@#$v#g" -i settings.yml
3333- done
3429 '';
35303631 settingType =
···9590 {
9691 server.port = 8080;
9792 server.bind_address = "0.0.0.0";
9898- server.secret_key = "@SEARX_SECRET_KEY@";
9393+ server.secret_key = "$SEARX_SECRET_KEY";
9994100100- engines = lib.singleton {
9595+ engines = [ {
10196 name = "wolframalpha";
10297 shortcut = "wa";
103103- api_key = "@WOLFRAM_API_KEY@";
9898+ api_key = "$WOLFRAM_API_KEY";
10499 engine = "wolframalpha_api";
105105- };
100100+ } ];
106101 }
107102 '';
108103 description = ''
109104 Searx settings.
110105 These will be merged with (taking precedence over) the default configuration.
111111- It's also possible to refer to environment variables (defined in [](#opt-services.searx.environmentFile)) using the syntax `@VARIABLE_NAME@`.
106106+ It's also possible to refer to environment variables (defined in [](#opt-services.searx.environmentFile)) using the syntax `$VARIABLE_NAME`.
112107113108 ::: {.note}
114109 For available settings, see the Searx [docs](https://docs.searxng.org/admin/settings/index.html).