Files
nixpkgs/nixos/modules/services/misc/zoneminder.nix
Ratchanan Srirattanamet 86b48684bb nixos/zoneminder: automatically update Nix store path in config DB
ZM has a configuration which defaults to a file in its installaton path.
In NixOS, this means a Nix store path is persisted into the database,
which will break when e.g. ZM is upgraded.

Workaround this by doing a regular expression-based string replacement
SQL command to replace this value. The regular expression should not
match if users has changed this config to somewhere else. It will match
even if ZM isn't upgraded, in which case it'll replace the value with
itself. As such, it should be safe to run this at every ZM startup.
2023-01-09 02:00:52 +07:00

11 KiB