d1299ed1129034e0bbccf90c77f00569bae46c61
UI-saved automations land in /var/lib/hass/automations.yaml, but HA won't load them unless configuration.yaml has \`automation: !include automations.yaml\`. The Nix-managed config didn't have it, so HA's post-save reload found no automations and timed out. The NixOS HA module's renderYAMLFile post-processes the generated YAML to convert quoted bang-strings into real YAML tags (see the sed step in nixos/modules/services/home-automation/home-assistant.nix), so a plain Nix string is enough — no escape-hatch needed. Pre-create the three include targets via systemd.tmpfiles so HA doesn't fail at startup if the user hasn't saved anything yet. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
Private NixOS Configuration
Structure
.
├── images # custom image generations
├── machines # machine definitions
├── modules # own nix-options, to modularize services/hardware/...
├── overlays # overlays
├── pkgs # own packages, which are not available in nixpkgs
└── environments # summarize module collections into single options
Commands
# Rebuild (switch/boot/test)
sudo nixos-rebuild switch --flake '.#jupiter'
# Update Flake
nix flake update
# Channel list
sudo nix-channel --list
# Channel update
sudo nix-channel --update
Description
Languages
Nix
100%