sp-modules: some startup fixes

This commit is contained in:
Alexander Tomokhov 2023-12-18 22:16:40 +04:00
parent da5dac6877
commit 257b0c08e8
2 changed files with 5 additions and 5 deletions

View file

@ -23,6 +23,7 @@ in
options = [
"bind"
"x-systemd.required-by=bitwarden-secrets.service"
"x-systemd.required-by=backup-vaultwarden.service"
"x-systemd.required-by=vaultwarden.service"
];
};
@ -31,6 +32,7 @@ in
options = [
"bind"
"x-systemd.required-by=bitwarden-secrets.service"
"x-systemd.required-by=backup-vaultwarden.service"
"x-systemd.required-by=vaultwarden.service"
];
};
@ -47,8 +49,8 @@ in
};
};
systemd.services.bitwarden-secrets = {
before = [ "vaultwarden.service" ];
requiredBy = [ "vaultwarden.service" ];
before = [ "backup-vaultwarden.service" "vaultwarden.service" ];
requiredBy = [ "backup-vaultwarden.service" "vaultwarden.service" ];
serviceConfig.Type = "oneshot";
path = with pkgs; [ coreutils jq ];
script = ''

View file

@ -55,9 +55,7 @@ in
ensureUsers = [
{
name = "pleroma";
ensurePermissions = {
"DATABASE pleroma" = "ALL PRIVILEGES";
};
ensureDBOwnership = true;
}
];
};