about summary refs log tree commit diff
path: root/nixos/modules/services/backup
diff options
context:
space:
mode:
authorWeijia Wang <9713184+wegank@users.noreply.github.com>2023-10-28 15:33:39 +0200
committerGitHub <noreply@github.com>2023-10-28 15:33:39 +0200
commit66ab26fce8abdd1e5c4b77842d412f96981d47f0 (patch)
tree01a8c803734468fbfce08f4125d7e6b99433c580 /nixos/modules/services/backup
parent3fb53f8a365ba962a9523e7eef458c91d8f20f87 (diff)
parent88bc98a073d12dc7e0c8b766a55d39ebeaed9927 (diff)
downloadnixlib-66ab26fce8abdd1e5c4b77842d412f96981d47f0.tar
nixlib-66ab26fce8abdd1e5c4b77842d412f96981d47f0.tar.gz
nixlib-66ab26fce8abdd1e5c4b77842d412f96981d47f0.tar.bz2
nixlib-66ab26fce8abdd1e5c4b77842d412f96981d47f0.tar.lz
nixlib-66ab26fce8abdd1e5c4b77842d412f96981d47f0.tar.xz
nixlib-66ab26fce8abdd1e5c4b77842d412f96981d47f0.tar.zst
nixlib-66ab26fce8abdd1e5c4b77842d412f96981d47f0.zip
Merge pull request #262084 from imlonghao/borgmatic/fix-262020
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"