moved home_assistant data to postgres

This commit is contained in:
2025-03-14 20:49:32 -04:00
parent 61db4659dd
commit 81ffea08e3
2 changed files with 48 additions and 4 deletions

View File

@@ -2,6 +2,14 @@ let
vars = import ../vars.nix;
in
{
users = {
users.hass = {
isSystemUser = true;
group = "hass";
};
groups.hass = {};
};
services = {
home-assistant = {
enable = true;
@@ -23,6 +31,12 @@ in
unit_system = "us_customary";
temperature_unit = "F";
};
recorder = {
db_url = "postgresql://@/hass";
auto_purge = true;
purge_keep_days = 3650;
db_retry_wait = 15;
};
assist_pipeline = { };
backup = { };
bluetooth = { };