mirror of
https://github.com/gensokyo-zone/infrastructure.git
synced 2026-02-09 20:39:18 -08:00
fix: home-assistant touch instead of generate
This commit is contained in:
parent
cbf851f2f2
commit
dee9298140
2 changed files with 4 additions and 18 deletions
|
|
@ -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 = {
|
||||
|
|
|
|||
2
tf
2
tf
|
|
@ -1 +1 @@
|
|||
Subproject commit 8581ec839aa3232215200e277a19af3d1eaef888
|
||||
Subproject commit 350586e12aeea00229c99fb2059dadac56934358
|
||||
Loading…
Add table
Add a link
Reference in a new issue