-
Notifications
You must be signed in to change notification settings - Fork 13
/
home-assistant.nix
46 lines (45 loc) · 944 Bytes
/
home-assistant.nix
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
43
44
45
46
{ pkgs, inputs, ... }:
{
# Always use module from unstable
disabledModules = [ "services/home-automation/home-assistant.nix" ];
imports = [
"${inputs.unstable}/nixos/modules/services/home-automation/home-assistant.nix"
];
services.home-assistant = {
enable = true;
openFirewall = true;
package = pkgs.unstable.home-assistant;
extraComponents = [
"apple_tv"
"brother"
"default_config"
"ipp"
"met"
"otbr"
"ring"
"roomba"
"snmp"
"sonos"
"touchline_sl"
"tplink"
"tplink_tapo"
"unifi"
"unifiprotect"
"upnp"
"webostv"
];
customComponents = [
pkgs.unstable.home-assistant-custom-components.solis-sensor
];
config = {
default_config = { };
http = {
trusted_proxies = [
"::1"
"127.0.0.1"
];
use_x_forwarded_for = true;
};
};
};
}