diff options
author | Martin Weinelt <mweinelt@users.noreply.github.com> | 2023-11-05 09:45:28 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-11-05 09:45:28 +0100 |
commit | f73eb3e15e45e264476626ce81d9cb5d4fb32dd8 (patch) | |
tree | 7697846372183ee332a688427f3a01d93c972700 /nixos | |
parent | 6e53b4f5de8dc7387a0e62370f3e8c71aee89151 (diff) | |
parent | 80c72efea87a7e24a8f767f5006f06b77a68d9ac (diff) | |
download | nixpkgs-f73eb3e15e45e264476626ce81d9cb5d4fb32dd8.tar nixpkgs-f73eb3e15e45e264476626ce81d9cb5d4fb32dd8.tar.gz nixpkgs-f73eb3e15e45e264476626ce81d9cb5d4fb32dd8.tar.bz2 nixpkgs-f73eb3e15e45e264476626ce81d9cb5d4fb32dd8.tar.lz nixpkgs-f73eb3e15e45e264476626ce81d9cb5d4fb32dd8.tar.xz nixpkgs-f73eb3e15e45e264476626ce81d9cb5d4fb32dd8.tar.zst nixpkgs-f73eb3e15e45e264476626ce81d9cb5d4fb32dd8.zip |
Merge pull request #265508 from NixOS/home-assistant
home-assistant: 2023.11.0 -> 2023.11.1
Diffstat (limited to 'nixos')
-rw-r--r-- | nixos/tests/home-assistant.nix | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/nixos/tests/home-assistant.nix b/nixos/tests/home-assistant.nix index e06c52a5f41..b7deb95b2c1 100644 --- a/nixos/tests/home-assistant.nix +++ b/nixos/tests/home-assistant.nix @@ -9,13 +9,13 @@ in { nodes.hass = { pkgs, ... }: { services.postgresql = { enable = true; - ensureDatabases = [ "hass" ]; - ensureUsers = [{ - name = "hass"; - ensurePermissions = { - "DATABASE hass" = "ALL PRIVILEGES"; - }; - }]; + + # FIXME: hack for https://github.com/NixOS/nixpkgs/issues/216989 + # Should be replaced with ensureUsers again when a solution for that is found + initialScript = pkgs.writeText "hass-setup-db.sql" '' + CREATE ROLE hass WITH LOGIN; + CREATE DATABASE hass WITH OWNER hass; + ''; }; services.home-assistant = { |