This commit is contained in:
alejandro-angulo 2025-11-30 19:05:42 -08:00
parent b385cf3bee
commit 934bb34550
9 changed files with 126 additions and 98 deletions

View file

@ -49,6 +49,7 @@ in
"smud"
"cast"
"ecobee"
"homekit_controller"
"hue"
"met"
@ -56,7 +57,9 @@ in
"octoprint"
"roborock"
"shelly"
"smlight"
"zeroconf"
"zha"
];
customComponents = with pkgs.home-assistant-custom-components; [
@ -78,18 +81,17 @@ in
services.nginx = {
enable = true;
virtualHosts."hass.kilonull.com" =
{
locations."/" = {
recommendedProxySettings = true;
proxyWebsockets = true;
proxyPass = "http://127.0.0.1:${toString hass_cfg.config.http.server_port}";
};
}
// lib.optionalAttrs (cfg.acmeCertName != "") {
forceSSL = true;
useACMEHost = cfg.acmeCertName;
virtualHosts."hass.kilonull.com" = {
locations."/" = {
recommendedProxySettings = true;
proxyWebsockets = true;
proxyPass = "http://127.0.0.1:${toString hass_cfg.config.http.server_port}";
};
}
// lib.optionalAttrs (cfg.acmeCertName != "") {
forceSSL = true;
useACMEHost = cfg.acmeCertName;
};
};
services.postgresql = {

View file

@ -27,6 +27,7 @@ in
acl = [
"readwrite home/#"
"readwrite homeassistant/#"
"readwrite zigbee2mqtt/#"
"read teslamate/#"
];
passwordFile = config.age.secrets.hass_mqtt.path;
@ -44,6 +45,7 @@ in
};
zigbee2mqtt = {
acl = [
# "readwrite" "home/#"
"readwrite zigbee2mqtt/#"
"readwrite homeassistant/#"
];

View file

@ -54,7 +54,7 @@ in
services.nextcloud = {
enable = true;
package = pkgs.nextcloud31;
package = pkgs.nextcloud32;
hostName = "nextcloud.kilonull.com";
https = true;
database.createLocally = true;

View file

@ -35,14 +35,17 @@ in
version = 4;
mqtt = {
base_topic = "zigbee2mqtt";
server = "mqtt://192.168.113.13:1833";
server = "mqtt://192.168.113.42:1883";
# TODO: Write secret.yaml file
user = "!secret.yaml user";
password = "!secret.yaml password";
};
serial = {
port = "tcp://192.168.113.130:6638";
adapter = "zstack";
port = "tcp://192.168.113.90:6638";
baudrate = 115200;
adapter = "ember";
disable_led = false;
advanced.transmit_power = 20;
};
advanced = {
channel = 11;
@ -64,7 +67,11 @@ in
enable = true;
recommendedProxySettings = true;
virtualHosts."zigbee2mqtt.kilonull.com" = {
locations."/".proxyPass = "http://127.0.0.1:8080";
locations."/" = {
recommendedProxySettings = true;
proxyWebsockets = true;
proxyPass = "http://127.0.0.1:8080";
};
}
// lib.optionalAttrs (cfg.acmeCertName != "") {
forceSSL = true;