diff --git a/modules/nixos/homeassistant/automations/default.nix b/modules/nixos/homeassistant/automations/default.nix index dd6e3ef..323f6d6 100644 --- a/modules/nixos/homeassistant/automations/default.nix +++ b/modules/nixos/homeassistant/automations/default.nix @@ -142,12 +142,10 @@ in }; config = { - environment.etc."lightswitch-automations.yaml".text = lightswitchAutomations; - - systemd.tmpfiles.rules = [ - "d /var/lib/homeassistant/automations 0755 hass hass -" - "L+ /var/lib/hass/automations/lightswitches.yaml - - - - /etc/lightswitch-automations.yaml" - ]; - + environment.etc."hass/lightswitch-automations.yaml" = { + text = lightswitchAutomations; + user = "hass"; + group = "hass"; + }; }; }