From 19355c0f91b541c6b26b2b98d248684aebf14f72 Mon Sep 17 00:00:00 2001 From: Max Date: Thu, 2 Dec 2021 23:42:01 +0100 Subject: [PATCH] VEGAS/bitwarden: allow backup to read data dir --- hosts/VEGAS/services/bitwarden/default.nix | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/hosts/VEGAS/services/bitwarden/default.nix b/hosts/VEGAS/services/bitwarden/default.nix index 0bb7e00..058081b 100644 --- a/hosts/VEGAS/services/bitwarden/default.nix +++ b/hosts/VEGAS/services/bitwarden/default.nix @@ -18,5 +18,10 @@ with tools.nginx; systemd.services.vaultwarden.serviceConfig = { ReadWriteDirectories = "/srv/storage/private/bitwarden"; }; - systemd.services.backup-vaultwarden.environment.DATA_FOLDER = lib.mkForce config.services.vaultwarden.config.dataFolder; + systemd.services.backup-vaultwarden = { + environment.DATA_FOLDER = lib.mkForce config.services.vaultwarden.config.dataFolder; + serviceConfig = { + ReadWriteDirectories = "/srv/storage/private/bitwarden"; + }; + }; }