Skip to content

Commit 3e47b65

Browse files
committed
Downgrade postgresql to fix permissions issue
1 parent c0bd50a commit 3e47b65

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

modules/nixos/nixos/profiles/home-automation/postgresql.nix

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,17 @@
11
# https://nixos.wiki/wiki/Home_Assistant#Using_PostgreSQL
2-
{ config, lib, ... }:
2+
{ config, lib, pkgs, ... }:
33
{
44
config = lib.mkIf config.profiles.home-automation.enable {
55
services.home-assistant.config.recorder.db_url = "postgresql://@/hass";
66

77
services.postgresql = {
88
enable = true;
9+
10+
# https://github.com/NixOS/nixpkgs/issues/216989
11+
package = pkgs.postgresql_14;
12+
913
ensureDatabases = [ "hass" ];
14+
1015
ensureUsers = [{
1116
name = "hass";
1217
ensurePermissions = {

0 commit comments

Comments
 (0)