Files
k8scd/nix-infra-machine/__test__/home-assistant/nodes/testnode001.nix
T
2026-03-15 18:31:53 +01:00

61 lines
1.5 KiB
Nix

{ config, pkgs, lib, ... }: {
# ==========================================================================
# Home Assistant Configuration (using infrastructure module)
# ==========================================================================
config.infrastructure.home-assistant = {
enable = true;
# Network settings
bindToIp = "0.0.0.0";
bindToPort = 8123;
openFirewall = true;
# Configuration directory
configDir = "/var/lib/hass";
configWritable = true;
# Components for testing
extraComponents = [
# Required for onboarding
"esphome"
"met"
"radio_browser"
];
# Home Assistant configuration
config = {
# Basic setup - includes dependencies for a basic setup
default_config = {};
# Core homeassistant settings
homeassistant = {
name = "Test Home";
unit_system = "metric";
time_zone = "UTC";
};
# HTTP configuration
http = {
server_host = "0.0.0.0";
server_port = 8123;
};
# Enable logging for debugging
logger = {
default = "info";
logs = {
"homeassistant.core" = "debug";
};
};
};
};
# ==========================================================================
# Test utilities
# ==========================================================================
config.environment.systemPackages = with pkgs; [
curl
jq
];
}