mirror of
https://git.selfprivacy.org/SelfPrivacy/selfprivacy-nixos-config.git
synced 2025-01-08 09:01:04 +00:00
explicit dependency between backup-vaultwarden and vaultwarden
This commit is contained in:
parent
257b0c08e8
commit
83a17063ac
|
@ -49,8 +49,8 @@ in
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
systemd.services.bitwarden-secrets = {
|
systemd.services.bitwarden-secrets = {
|
||||||
before = [ "backup-vaultwarden.service" "vaultwarden.service" ];
|
before = [ "vaultwarden.service" ];
|
||||||
requiredBy = [ "backup-vaultwarden.service" "vaultwarden.service" ];
|
requiredBy = [ "vaultwarden.service" ];
|
||||||
serviceConfig.Type = "oneshot";
|
serviceConfig.Type = "oneshot";
|
||||||
path = with pkgs; [ coreutils jq ];
|
path = with pkgs; [ coreutils jq ];
|
||||||
script = ''
|
script = ''
|
||||||
|
@ -71,6 +71,7 @@ in
|
||||||
<(printf "%s" "$bitwarden_env") ${bitwarden-env}
|
<(printf "%s" "$bitwarden_env") ${bitwarden-env}
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
services.nginx.virtualHosts."password.${sp.domain}" = {
|
services.nginx.virtualHosts."password.${sp.domain}" = {
|
||||||
sslCertificate = "/var/lib/acme/${sp.domain}/fullchain.pem";
|
sslCertificate = "/var/lib/acme/${sp.domain}/fullchain.pem";
|
||||||
sslCertificateKey = "/var/lib/acme/${sp.domain}/key.pem";
|
sslCertificateKey = "/var/lib/acme/${sp.domain}/key.pem";
|
||||||
|
@ -91,5 +92,7 @@ in
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
# NixOS upstream bug? Otherwise, backup-vaultwarden cannot find sqlite DB.
|
||||||
|
systemd.services.backup-vaultwarden.after = [ "vaultwarden.service" ];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue