⬆️ upgrade to pg12

This commit is contained in:
James Walker 2022-06-10 17:27:55 -04:00
parent fc267e49f1
commit 9834e3b7eb
Signed by: walkah
GPG Key ID: 3C127179D6086E93
3 changed files with 88 additions and 18 deletions

View File

@ -44,11 +44,11 @@
"dotfiles": { "dotfiles": {
"flake": false, "flake": false,
"locked": { "locked": {
"lastModified": 1652235633, "lastModified": 1654697615,
"narHash": "sha256-b9mIXMOFJdQQrxgvDMGw5W7rAAyPlNUovfYpfn1yVWo=", "narHash": "sha256-4yhi6AA1Hf2V7NC9YNlFJ76UN24Z9B8/ij7At7fvx7o=",
"owner": "walkah", "owner": "walkah",
"repo": "dotfiles", "repo": "dotfiles",
"rev": "213260ff94a799966cab986103a4c92557e53d70", "rev": "a9e9c0a2e81f86d4ccb8b349fee375a7dd628955",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -89,6 +89,22 @@
"type": "github" "type": "github"
} }
}, },
"flake-compat_3": {
"flake": false,
"locked": {
"lastModified": 1650374568,
"narHash": "sha256-Z+s0J8/r907g149rllvwhb4pKi8Wam5ij0st8PwAh+E=",
"owner": "edolstra",
"repo": "flake-compat",
"rev": "b4a34015c698c7793d592d66adbab377907a2be8",
"type": "github"
},
"original": {
"owner": "edolstra",
"repo": "flake-compat",
"type": "github"
}
},
"flake-utils": { "flake-utils": {
"locked": { "locked": {
"lastModified": 1653893745, "lastModified": 1653893745,
@ -106,14 +122,18 @@
}, },
"home-manager": { "home-manager": {
"inputs": { "inputs": {
"nixpkgs": "nixpkgs_2" "flake-compat": "flake-compat_3",
"nixpkgs": "nixpkgs_2",
"nmd": "nmd",
"nmt": "nmt",
"utils": "utils_2"
}, },
"locked": { "locked": {
"lastModified": 1654422613, "lastModified": 1654628474,
"narHash": "sha256-ZxkMM13AnrMwYOV99ohzcqeTkAOqD9Q2SBdZ9WoFE9Y=", "narHash": "sha256-Llm9X8Af15uC9IMStxqjCfO15WgYTqTnsQq8wMcpp5Q=",
"owner": "nix-community", "owner": "nix-community",
"repo": "home-manager", "repo": "home-manager",
"rev": "20703892473d01c70fb10248442231fe94f4ceb4", "rev": "70824bb5c790b820b189f62f643f795b1d2ade2e",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -172,25 +192,27 @@
}, },
"nixpkgs_2": { "nixpkgs_2": {
"locked": { "locked": {
"lastModified": 1654398695, "lastModified": 1654230545,
"narHash": "sha256-Kw/KeoFXszNsF5mORP45mrxCP+k9Aq03hWcuWCL9sdI=", "narHash": "sha256-8Vlwf0x8ow6pPOK2a04bT+pxIeRnM1+O0Xv9/CuDzRs=",
"owner": "NixOS", "owner": "nixos",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "c5d810f4c74c824ae0fb788103003c6c9d366a08", "rev": "236cc2971ac72acd90f0ae3a797f9f83098b17ec",
"type": "github" "type": "github"
}, },
"original": { "original": {
"id": "nixpkgs", "owner": "nixos",
"type": "indirect" "ref": "nixos-unstable",
"repo": "nixpkgs",
"type": "github"
} }
}, },
"nixpkgs_3": { "nixpkgs_3": {
"locked": { "locked": {
"lastModified": 1654230545, "lastModified": 1654682581,
"narHash": "sha256-8Vlwf0x8ow6pPOK2a04bT+pxIeRnM1+O0Xv9/CuDzRs=", "narHash": "sha256-Jb1PQCwKgwdNAp907eR5zPzuxV+kRroA3UIxUxCMJ9s=",
"owner": "NixOS", "owner": "NixOS",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "236cc2971ac72acd90f0ae3a797f9f83098b17ec", "rev": "e0169d7a9d324afebf5679551407756c77af8930",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -200,6 +222,38 @@
"type": "github" "type": "github"
} }
}, },
"nmd": {
"flake": false,
"locked": {
"lastModified": 1653339422,
"narHash": "sha256-8nc7lcYOgih3YEmRMlBwZaLLJYpLPYKBlewqHqx8ieg=",
"owner": "rycee",
"repo": "nmd",
"rev": "9e7a20e6ee3f6751f699f79c0b299390f81f7bcd",
"type": "gitlab"
},
"original": {
"owner": "rycee",
"repo": "nmd",
"type": "gitlab"
}
},
"nmt": {
"flake": false,
"locked": {
"lastModified": 1648075362,
"narHash": "sha256-u36WgzoA84dMVsGXzml4wZ5ckGgfnvS0ryzo/3zn/Pc=",
"owner": "rycee",
"repo": "nmt",
"rev": "d83601002c99b78c89ea80e5e6ba21addcfe12ae",
"type": "gitlab"
},
"original": {
"owner": "rycee",
"repo": "nmt",
"type": "gitlab"
}
},
"root": { "root": {
"inputs": { "inputs": {
"darwin": "darwin", "darwin": "darwin",
@ -248,6 +302,21 @@
"repo": "flake-utils", "repo": "flake-utils",
"type": "github" "type": "github"
} }
},
"utils_2": {
"locked": {
"lastModified": 1653893745,
"narHash": "sha256-0jntwV3Z8//YwuOjzhV2sgJJPt+HY6KhU7VZUL0fKZQ=",
"owner": "numtide",
"repo": "flake-utils",
"rev": "1ed9fb1935d260de5fe1c2f7ee0ebaae17ed2fa1",
"type": "github"
},
"original": {
"owner": "numtide",
"repo": "flake-utils",
"type": "github"
}
} }
}, },
"root": "root", "root": "root",

View File

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

View File

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