91 lines
1.9 KiB
Nix
91 lines
1.9 KiB
Nix
{
|
|
self,
|
|
config,
|
|
pkgs,
|
|
...
|
|
}: {
|
|
pub-solar.home-assistant = {
|
|
enable = true;
|
|
|
|
extraComponents = ["androidtv" "fritz" "fritzbox" "fritzbox_callmonitor" "met" "mqtt"];
|
|
extraPackages = python3Packages:
|
|
with python3Packages; [
|
|
# androidtv
|
|
adb-shell
|
|
aiofiles
|
|
androidtv
|
|
|
|
# hacs
|
|
aiogithubapi
|
|
|
|
# totop
|
|
pyotp
|
|
];
|
|
|
|
mqtt = {
|
|
enable = true;
|
|
users = {
|
|
ha = {
|
|
acl = [
|
|
"readwrite #"
|
|
];
|
|
hashedPassword = "$7$101$jLA9PReG5btNSvw8$O0c3UzCfcBcvqVH8kMZIwEims7p1L4o/DmOTHO9w9731ggC5SyUpJGQIDiUbv+IrTl/H0+Fz9QF/jvY0QCuxuA==";
|
|
};
|
|
nono = {
|
|
acl = [
|
|
"readwrite #"
|
|
];
|
|
hashedPassword = "$7$101$votbflBI1KrRRzBy$hCC/qo7Ggaf2vaLv7lo5uPnyrTCb0i6hPQvXuL/OrrUpzP+KNl6efEU7yQ0cDH6/rJ16Fe2PWSTcW+pL8dlgmg==";
|
|
};
|
|
z2m = {
|
|
acl = [
|
|
"readwrite #"
|
|
];
|
|
hashedPassword = "$7$101$iZE7WOCQIaLtuoVN$M7AAB/mMmhkuXQVmu2RPoJzm744bmwxGTJwE0eoqlPAjyQHbjmOWfEuKoo9jnQCoQu2T96gS8znsUNizGgPWiQ==";
|
|
};
|
|
};
|
|
};
|
|
|
|
zigbee2mqtt = {
|
|
enable = true;
|
|
device = "/dev/ttyS0";
|
|
adapter = "deconz";
|
|
};
|
|
|
|
config = {
|
|
homeassistant = {
|
|
name = "Berrendorf";
|
|
time_zone = "Europe/Berlin";
|
|
temperature_unit = "C";
|
|
unit_system = "metric";
|
|
latitude = "50.9279036523298";
|
|
longitude = "6.583225751885932";
|
|
};
|
|
http = {
|
|
ip_ban_enabled = false;
|
|
use_x_forwarded_for = true;
|
|
trusted_proxies = [
|
|
"127.0.0.1"
|
|
"10.254.0.21"
|
|
"10.0.1.5"
|
|
"10.0.1.6"
|
|
];
|
|
};
|
|
|
|
energy = {};
|
|
frontend = {};
|
|
history = {};
|
|
map = {};
|
|
my = {};
|
|
mobile_app = {};
|
|
network = {};
|
|
notify = {};
|
|
person = {};
|
|
ssdp = {};
|
|
sun = {};
|
|
system_health = {};
|
|
zeroconf = {};
|
|
};
|
|
};
|
|
}
|