mirror of
https://github.com/spacebarchat/server.git
synced 2026-03-30 13:55:39 +00:00
Nix: remove dependency on postgres service if host isnt running it
This commit is contained in:
@@ -223,7 +223,8 @@ in
|
||||
|
||||
systemd.services.spacebar-apply-migrations = makeServerTsService {
|
||||
description = "Spacebar Server - Apply DB migrations";
|
||||
after = [ "network-online.target" "postgresql.service" ];
|
||||
after = [ "network-online.target" ] ++ lib.optional config.services.postgresql.enable "postgresql.service";
|
||||
requires = lib.optional config.services.postgresql.enable "postgresql.service";
|
||||
environment = builtins.mapAttrs (_: val: builtins.toString val) (
|
||||
cfg.extraEnvironment
|
||||
// {
|
||||
|
||||
Reference in New Issue
Block a user