From dee9298140fbc5a3feb49ce66b70dc6d31eee72c Mon Sep 17 00:00:00 2001 From: kat Date: Thu, 6 Oct 2022 10:01:04 -0700 Subject: [PATCH] fix: home-assistant touch instead of generate --- nixos/systems/tewi/home-assistant.nix | 20 +++----------------- tf | 2 +- 2 files changed, 4 insertions(+), 18 deletions(-) diff --git a/nixos/systems/tewi/home-assistant.nix b/nixos/systems/tewi/home-assistant.nix index b32bc679..e7cb837f 100644 --- a/nixos/systems/tewi/home-assistant.nix +++ b/nixos/systems/tewi/home-assistant.nix @@ -48,20 +48,6 @@ field = "iphone-se-irk"; }; - secrets.files.home-assistant-scenes = { - text = builtins.toJSON { - }; - owner = "hass"; - group = "hass"; - }; - - secrets.files.home-assistant-automations = { - text = builtins.toJSON { - }; - owner = "hass"; - group = "hass"; - }; - secrets.files.home-assistant-secrets = { text = builtins.toJSON { @@ -77,10 +63,10 @@ systemd.services.home-assistant = { preStart = lib.mkBefore '' cp --no-preserve=mode ${config.secrets.files.home-assistant-secrets.path} ${config.services.home-assistant.configDir}/secrets.yaml - cp --no-preserve=mode ${config.secrets.files.home-assistant-scenes.path} ${config.services.home-assistant.configDir}/scenes.yaml - cp --no-preserve=mode ${config.secrets.files.home-assistant-automations.path} ${config.services.home-assistant.configDir}/automations.yaml cp --no-preserve=mode ${config.secrets.files.ha-integration.path} ${config.services.home-assistant.configDir}/integration.yaml - ''; + touch ${config.services.home-assistant.configDir}/automations.yaml + touch ${config.services.home-assistant.configDir}/scenes.yaml + ''; }; services.home-assistant = { diff --git a/tf b/tf index 8581ec83..350586e1 160000 --- a/tf +++ b/tf @@ -1 +1 @@ -Subproject commit 8581ec839aa3232215200e277a19af3d1eaef888 +Subproject commit 350586e12aeea00229c99fb2059dadac56934358