diff options
author | Weijia Wang <9713184+wegank@users.noreply.github.com> | 2023-10-28 15:33:39 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-10-28 15:33:39 +0200 |
commit | 66ab26fce8abdd1e5c4b77842d412f96981d47f0 (patch) | |
tree | 01a8c803734468fbfce08f4125d7e6b99433c580 /nixos/modules/services/backup | |
parent | 3fb53f8a365ba962a9523e7eef458c91d8f20f87 (diff) | |
parent | 88bc98a073d12dc7e0c8b766a55d39ebeaed9927 (diff) |
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.nix | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/nixos/modules/services/backup/borgmatic.nix b/nixos/modules/services/backup/borgmatic.nix index d3ba7628e85dd..b27dd2817120b 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" |