nixos/mastodon: make robust for cases where postgresql isn't enabled on the host
E.g. when a remote PostgreSQL database is used Apparently you can't access the services.postgresql.package value anymore if postgresql isn't enabled?
This commit is contained in:
parent
c7a677857a
commit
ed0af3bf25
@ -973,7 +973,7 @@ in
|
|||||||
'';
|
'';
|
||||||
path = [
|
path = [
|
||||||
cfg.package
|
cfg.package
|
||||||
config.services.postgresql.package
|
(if databaseActuallyCreateLocally then config.services.postgresql.package else pkgs.postgresql)
|
||||||
];
|
];
|
||||||
environment =
|
environment =
|
||||||
env
|
env
|
||||||
|
Loading…
x
Reference in New Issue
Block a user