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?

+1 -1
+1 -1
nixos/modules/services/web-apps/mastodon.nix
··· 973 973 ''; 974 974 path = [ 975 975 cfg.package 976 - config.services.postgresql.package 976 + (if databaseActuallyCreateLocally then config.services.postgresql.package else pkgs.postgresql) 977 977 ]; 978 978 environment = 979 979 env