blob: 237699707641d0525ba7d6ed880d5710a0dc6523 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
|
{ pkgs, ... }: {
services.postgresql = {
enable = true;
ensureDatabases = [ "hass" ];
ensureUsers = [{
name = "hass";
ensureDBOwnership = true;
}];
};
services.home-assistant = {
enable = true;
package = (pkgs.home-assistant.override {
extraPackages = py: with py; [ psycopg2 ];
}).overrideAttrs (oldAttrs: {
doInstallCheck = false;
});
extraComponents = [
"analytics"
"google_translate"
"met"
"radio_browser"
"shopping_list"
"tplink"
"tuya"
"utility_meter"
];
config = {
default_config = {};
recorder.db_url = "postgresql://@/hass";
http = {
server_host = "127.0.0.1";
trusted_proxies = [ "127.0.0.1" ];
use_x_forwarded_for = true;
};
};
};
}
|