⬆️ upgrade to pg12

This commit is contained in:
2022-06-10 17:27:55 -04:00
parent fc267e49f1
commit 9834e3b7eb
3 changed files with 88 additions and 18 deletions

View File

@ -5,7 +5,7 @@
virtualisation.oci-containers = {
containers = {
home-assistant = {
image = "ghcr.io/home-assistant/home-assistant:2022.5.5";
image = "ghcr.io/home-assistant/home-assistant:2022.6.4";
volumes =
[ "/var/lib/hass:/config" "/etc/localtime:/etc/localtime:ro" ];
extraOptions = [ "--privileged" "--network=host" ];

View File

@ -2,6 +2,7 @@
services = {
postgresql = {
enable = true;
package = pkgs.postgresql_12;
};
postgresqlBackup = {
@ -17,7 +18,7 @@
systemctl stop postgresql
# XXX replace `<new version>` with the psqlSchema here
export NEWDATA="/var/lib/postgresql/11.1"
export NEWDATA="/var/lib/postgresql/12"
# XXX specify the postgresql package you'd like to upgrade to
export NEWBIN="${pkgs.postgresql_12}/bin"