nixos: services: use 'postgresql.target'

This is now the more correct dependency to use in service definitions,
to guarantee read-write access with users and permissions.
This commit is contained in:
Bruno BELANYI 2025-07-02 13:24:16 +02:00
parent 03bb627770
commit d618406516
3 changed files with 6 additions and 6 deletions

View file

@ -24,8 +24,8 @@ in
};
systemd.services.woodpecker-server = {
after = [ "postgresql.service" ];
requires = [ "postgresql.service" ];
after = [ "postgresql.target" ];
requires = [ "postgresql.target" ];
serviceConfig = {
# Set username for DB access