mirror of
https://github.com/anotherhadi/nixy.git
synced 2026-10-05 11:18:24 +02:00
@@ -2,6 +2,7 @@
|
|||||||
services.home-assistant = {
|
services.home-assistant = {
|
||||||
enable = true;
|
enable = true;
|
||||||
openFirewall = true;
|
openFirewall = true;
|
||||||
|
configWritable = true;
|
||||||
extraComponents = [
|
extraComponents = [
|
||||||
"default_config"
|
"default_config"
|
||||||
"met"
|
"met"
|
||||||
@@ -16,9 +17,19 @@
|
|||||||
trusted_proxies = ["127.0.0.1" "::1"];
|
trusted_proxies = ["127.0.0.1" "::1"];
|
||||||
use_x_forwarded_for = true;
|
use_x_forwarded_for = true;
|
||||||
};
|
};
|
||||||
|
scene = "!include scenes.yaml";
|
||||||
|
automation = "!include automations.yaml";
|
||||||
|
script = "!include scripts.yaml";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
systemd.services.home-assistant.preStart = ''
|
||||||
|
for f in scenes.yaml automations.yaml scripts.yaml; do
|
||||||
|
path="${config.services.home-assistant.configDir}/$f"
|
||||||
|
[ -f "$path" ] || echo "[]" > "$path"
|
||||||
|
done
|
||||||
|
'';
|
||||||
|
|
||||||
services.matter-server = {
|
services.matter-server = {
|
||||||
enable = true;
|
enable = true;
|
||||||
extraArgs.primary-interface = config.var.networkInterface;
|
extraArgs.primary-interface = config.var.networkInterface;
|
||||||
|
|||||||
Reference in New Issue
Block a user