Skip to content

Commit

Permalink
postgres: fix mastodon default (#176)
Browse files Browse the repository at this point in the history
  • Loading branch information
SuperSandro2000 authored Dec 4, 2024
1 parent e64ca69 commit 39d26dd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modules/postgres.nix
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ in
echo "
Run the following commands after setting:
Run the below shell commands after setting this NixOS option:
services.postgresql.package = pkgs.postgresql_${lib.versions.major cfgu.newPackage.version}
sudo -u postgres vacuumdb --all --analyze-in-stages
Expand All @@ -186,7 +186,7 @@ in
(lib.mkIf (hydra.enable && (!lib.hasInfix ";host=" hydra.dbi)) [
"hydra-evaluator" "hydra-notify" "hydra-send-stats" "hydra-update-gc-roots" "hydra-queue-runner" "hydra-server"
])
(lib.mkIf (mastodon.enable && mastodon.database.host == "/run/postgresql") [ "mastodon-sidekiq-all" "mastodon-streaming" "mastodon-web"])
(lib.mkIf (mastodon.enable && mastodon.database.host == "/run/postgresql") [ "mastodon-sidekiq-all" "mastodon-streaming.target" "mastodon-web"])
# assume that when host is set, which is not the default, the database is none local
(lib.mkIf (matrix-synapse.enable && (!lib.hasAttr "host" matrix-synapse.settings.database.args)) [ "matrix-synapse" ])
(lib.mkIf (mediawiki.enable && mediawiki.database.socket == "/run/postgresql") [ "phpfpm-mediawiki" ])
Expand Down

0 comments on commit 39d26dd

Please sign in to comment.