mirror of
https://github.com/anotherhadi/nixy.git
synced 2026-10-05 11:18:24 +02:00
@@ -2,6 +2,7 @@
|
||||
services.home-assistant = {
|
||||
enable = true;
|
||||
openFirewall = true;
|
||||
configWritable = true;
|
||||
extraComponents = [
|
||||
"default_config"
|
||||
"met"
|
||||
@@ -16,9 +17,19 @@
|
||||
trusted_proxies = ["127.0.0.1" "::1"];
|
||||
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 = {
|
||||
enable = true;
|
||||
extraArgs.primary-interface = config.var.networkInterface;
|
||||
|
||||
Reference in New Issue
Block a user