borgmatic: fix deprecation warning check failed

This commit is contained in:
imlonghao 2023-10-19 22:26:09 +08:00
parent 7c9cc5a6e5
commit 88bc98a073
No known key found for this signature in database
GPG Key ID: BB80A757B3E37324

View File

@ -81,7 +81,7 @@ in
config = mkIf cfg.enable {
warnings = []
++ optional (cfg.settings != null && cfg.settings.location != null)
++ optional (cfg.settings != null && cfg.settings ? location)
"`services.borgmatic.settings.location` is deprecated, please move your options out of sections to the global scope"
++ optional (catAttrs "location" (attrValues cfg.configurations) != [])
"`services.borgmatic.configurations.<name>.location` is deprecated, please move your options out of sections to the global scope"