summaryrefslogtreecommitdiffstats
path: root/nixos/modules/services/backup
diff options
context:
space:
mode:
authorimlonghao <git@imlonghao.com>2023-10-19 22:26:09 +0800
committerimlonghao <git@imlonghao.com>2023-10-28 11:32:38 +0800
commit88bc98a073d12dc7e0c8b766a55d39ebeaed9927 (patch)
treea230a653a4e11196c7128cd4b2dc32b6e0bf73f2 /nixos/modules/services/backup
parent7c9cc5a6e5d38010801741ac830a3f8fd667a7a0 (diff)
borgmatic: fix deprecation warning check failed
Diffstat (limited to 'nixos/modules/services/backup')
-rw-r--r--nixos/modules/services/backup/borgmatic.nix2
1 files changed, 1 insertions, 1 deletions
diff --git a/nixos/modules/services/backup/borgmatic.nix b/nixos/modules/services/backup/borgmatic.nix
index d3ba7628e85d..b27dd2817120 100644
--- a/nixos/modules/services/backup/borgmatic.nix
+++ b/nixos/modules/services/backup/borgmatic.nix
@@ -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"