From 2cd35e2b4591d46dd7b5d0190f2c1dab70d8f0dc Mon Sep 17 00:00:00 2001 From: K900 Date: Wed, 7 Aug 2024 09:42:01 +0300 Subject: [PATCH] nixos/vaultwarden: fix eval --- nixos/modules/services/security/vaultwarden/default.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nixos/modules/services/security/vaultwarden/default.nix b/nixos/modules/services/security/vaultwarden/default.nix index d95a19a5fac7..11d49b580b31 100644 --- a/nixos/modules/services/security/vaultwarden/default.nix +++ b/nixos/modules/services/security/vaultwarden/default.nix @@ -168,7 +168,7 @@ in { message = "Backups for database backends other than sqlite will need customization"; } { - assertion = !(lib.hasPrefix dataDir cfg.backupDir); + assertion = cfg.backupDir != null -> !(lib.hasPrefix dataDir cfg.backupDir); message = "Backup directory can not be in ${dataDir}"; } ];