95 lines
2.2 KiB
Nix
95 lines
2.2 KiB
Nix
|
{
|
||
|
self,
|
||
|
config,
|
||
|
pkgs,
|
||
|
...
|
||
|
}: {
|
||
|
age.secrets.home-assistant_giggles_secrets = {
|
||
|
file = "${self}/secrets/home-assistant_giggles_secrets.age";
|
||
|
path = "${config.services.home-assistant.configDir}/secrets.yaml";
|
||
|
owner = config.systemd.services.home-assistant.serviceConfig.User;
|
||
|
group = config.systemd.services.home-assistant.serviceConfig.Group;
|
||
|
mode = "0644";
|
||
|
};
|
||
|
|
||
|
pub-solar.home-assistant = {
|
||
|
enable = true;
|
||
|
extraComponents = ["met"];
|
||
|
extraPackages = python3Packages:
|
||
|
with python3Packages; [
|
||
|
# hacs
|
||
|
aiogithubapi
|
||
|
|
||
|
# totop
|
||
|
pyotp
|
||
|
];
|
||
|
|
||
|
config = {
|
||
|
homeassistant = {
|
||
|
name = "Wohnung";
|
||
|
time_zone = "Europe/Berlin";
|
||
|
temperature_unit = "C";
|
||
|
unit_system = "metric";
|
||
|
latitude = "52.31501090166047";
|
||
|
longitude = "8.910633035293603";
|
||
|
};
|
||
|
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 = {};
|
||
|
|
||
|
device_tracker = [
|
||
|
{
|
||
|
platform = "luci";
|
||
|
host = "192.168.8.1";
|
||
|
username = "!secret router_admin_username";
|
||
|
password = "!secret router_admin_password";
|
||
|
}
|
||
|
];
|
||
|
};
|
||
|
|
||
|
mqtt = {
|
||
|
enable = true;
|
||
|
users = {
|
||
|
ha = {
|
||
|
acl = [
|
||
|
"readwrite #"
|
||
|
];
|
||
|
hashedPassword = "$7$101$lFt8hQl3O8aKF+bO$pcZuI18IT5t4/fpKZmLZQwQs+vcbxZdAQAYJOxRwXGYsxCRjb8jUSU+ZRlpqokOGqf/Cgvymfvml+yoGaC8eaw==";
|
||
|
};
|
||
|
z2m = {
|
||
|
acl = [
|
||
|
"readwrite #"
|
||
|
];
|
||
|
hashedPassword = "$7$101$M0Q/s9ReWPaMy+pT$Y8t9DwmW3y74lyvYrCE+sqEcz9yGG9VaHw8vt4wVZgUVVV9muY00ymjkwsTNtaTIlnQyB7z7POPLT3PURtQfeg==";
|
||
|
};
|
||
|
};
|
||
|
};
|
||
|
|
||
|
zigbee2mqtt = {
|
||
|
enable = true;
|
||
|
device = "/dev/serial/by-id/usb-Nabu_Casa_SkyConnect_v1.0_aaf7050fdb42ed11bb2843ab2a61ed69-if00-port0";
|
||
|
};
|
||
|
};
|
||
|
}
|