mirror of
https://git.selfprivacy.org/SelfPrivacy/selfprivacy-nixos-config.git
synced 2024-11-05 16:33:12 +00:00
sp-modules: some startup fixes
This commit is contained in:
parent
da5dac6877
commit
257b0c08e8
|
@ -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 = ''
|
||||
|
|
|
@ -55,9 +55,7 @@ in
|
|||
ensureUsers = [
|
||||
{
|
||||
name = "pleroma";
|
||||
ensurePermissions = {
|
||||
"DATABASE pleroma" = "ALL PRIVILEGES";
|
||||
};
|
||||
ensureDBOwnership = true;
|
||||
}
|
||||
];
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue