mirror of
https://github.com/rubenhensen/k8scd.git
synced 2026-09-17 02:12:55 +02:00
Add nix-infra-machine
This commit is contained in:
@@ -0,0 +1,60 @@
|
||||
{ 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
|
||||
];
|
||||
}
|
||||
Reference in New Issue
Block a user