mirror of
https://github.com/spacebarchat/server.git
synced 2026-11-21 21:27:38 +00:00
Nix: remove dependency on postgres service if host isnt running it
This commit is contained in:
1 parent
00b2a18cdb
commit
bdf08b758f
1 file changed
+2
-1
@@ -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