services: home-assistant: use batch mode for ssh invocations

Signed-off-by: Christoph Heiss <christoph@c8h4.io>
This commit is contained in:
Christoph Heiss 2024-06-24 23:12:54 +02:00
parent 417ff5defa
commit 8ee22e9e5c
Signed by: c8h4
GPG key ID: 73D5E7FDEE3DE49A

View file

@ -58,6 +58,7 @@ in {
shell_command.poweroff_zero = trimNewlines '' shell_command.poweroff_zero = trimNewlines ''
${pkgs.openssh}/bin/ssh ${pkgs.openssh}/bin/ssh
-i ${secrets."home-assistant/automation-sshkey".path} -i ${secrets."home-assistant/automation-sshkey".path}
-o BatchMode=yes
-o StrictHostKeyChecking=no -o StrictHostKeyChecking=no
automation@zero poweroff automation@zero poweroff
''; '';