mirror of
https://github.com/CHN-beta/nixpkgs.git
synced 2026-01-11 18:32:23 +08:00
nixos/vaultwarden: refactor (#475097)
This commit is contained in:
@@ -270,7 +270,7 @@ in
|
||||
after = [ "network-online.target" ] ++ lib.optional cfg.configurePostgres "postgresql.target";
|
||||
requires = lib.mkIf cfg.configurePostgres [ "postgresql.target" ];
|
||||
wants = [ "network-online.target" ];
|
||||
path = with pkgs; [ openssl ];
|
||||
path = [ pkgs.openssl ];
|
||||
serviceConfig = {
|
||||
User = user;
|
||||
Group = group;
|
||||
@@ -326,7 +326,7 @@ in
|
||||
DATA_FOLDER = dataDir;
|
||||
BACKUP_FOLDER = cfg.backupDir;
|
||||
};
|
||||
path = with pkgs; [ sqlite ];
|
||||
path = [ pkgs.sqlite ];
|
||||
# if both services are started at the same time, vaultwarden fails with "database is locked"
|
||||
before = [ "vaultwarden.service" ];
|
||||
serviceConfig = {
|
||||
|
||||
Reference in New Issue
Block a user