From f6b293e1a3b69cbd7539f13702f90f6c130b5dad Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sandro=20J=C3=A4ckel?= Date: Sat, 7 Jan 2023 05:27:40 +0100 Subject: [PATCH] Upgrade postgres --- hosts/mobilizon/default.nix | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/hosts/mobilizon/default.nix b/hosts/mobilizon/default.nix index 54daf7d3..66918ac4 100644 --- a/hosts/mobilizon/default.nix +++ b/hosts/mobilizon/default.nix @@ -6,8 +6,6 @@ networking.hostName = "mobilizon"; - services.postgresql.package = pkgs.postgresql_13; - services.mobilizon = { enable = true; settings.":mobilizon".":instance" = { @@ -42,5 +40,11 @@ }; }; + services.postgresql = { + extraPlugins = with config.services.postgresql.package.pkgs; [ postgis ]; + package = pkgs.postgresql_15; + upgrade.stopServices = [ "mobilizon" ]; + }; + system.stateVersion = "22.05"; }