Add explicit vaultwarden version

This commit is contained in:
Natsu Kagami 2023-11-04 21:33:53 +01:00
parent f155382789
commit 0233a84edc
Signed by: nki
GPG key ID: 55A032EB38B49ADB

View file

@ -13,6 +13,10 @@ let
notificationsPort = 8002; notificationsPort = 8002;
host = "bw.nkagami.me"; host = "bw.nkagami.me";
package = pkgs.unstable.vaultwarden-postgresql.overrideAttrs (attrs: {
VW_VERSION = "2023.9.0";
});
in in
{ {
options.cloud.bitwarden = { options.cloud.bitwarden = {
@ -65,7 +69,7 @@ in
serviceConfig = { serviceConfig = {
User = user; User = user;
Group = user; Group = user;
ExecStart = "${pkgs.unstable.vaultwarden-postgresql}/bin/vaultwarden"; ExecStart = "${package}/bin/vaultwarden";
EnvironmentFile = lists.optional (cfg.envFile != null) cfg.envFile; EnvironmentFile = lists.optional (cfg.envFile != null) cfg.envFile;
LimitNOFILE = "1048576"; LimitNOFILE = "1048576";
PrivateTmp = "true"; PrivateTmp = "true";