bitwarden: "ConditionPathExists" instead of "after"

This commit is contained in:
Alexander Tomokhov 2023-12-19 00:57:12 +04:00
parent 0ad2ffc30e
commit 69f84cdc2b

View file

@ -92,7 +92,7 @@ in
}; };
}; };
# NixOS upstream bug? Otherwise, backup-vaultwarden cannot find sqlite DB. # NixOS upstream bug? Otherwise, backup-vaultwarden cannot find sqlite DB.
systemd.services.backup-vaultwarden.after = [ "vaultwarden.service" ]; systemd.services.backup-vaultwarden.unitConfig.ConditionPathExists =
systemd.services.backup-vaultwarden.before = lib.mkForce [ ]; "/var/lib/bitwarden_rs/db.sqlite3";
}; };
} }