ha unstable

This commit is contained in:
death916 2025-05-15 12:14:12 +00:00
parent 755a9ef38e
commit 9769c63160
2 changed files with 32 additions and 3 deletions

View file

@ -1,16 +1,34 @@
# /home/death916/nixconfig/modules/home-assistant.nix
{ config, pkgs, lib, unstablePkgsHA, ... }: # Added unstablePkgsHA
{ {
services.home-assistant = { services.home-assistant = {
enable = true; enable = true;
package = unstablePkgsHA.home-assistant; # Use HA package from unstable
extraComponents = [ extraComponents = [
# Components required to complete the onboarding
"esphome" "esphome"
"met" "met"
"radio_browser" "radio_browser"
]; ];
config = { config = {
# Includes dependencies for a basic setup
# https://www.home-assistant.io/integrations/default_config/
default_config = {}; default_config = {};
homeassistant = {
name = "Homelab HA (Unstable)";
time_zone = "America/Los_Angeles";
};
# Add other integrations as needed
}; };
}; };
# Firewall rule for Home Assistant
networking.firewall.allowedTCPPorts = [ 8123 ];
# Ensure the `hass` user has access to necessary devices (e.g., Zigbee/Z-Wave dongles)
users.users.hass.extraGroups = lib.mkIf (config.services.home-assistant.enable) [
"dialout" # Common group for serial devices
# Add other groups if needed
];
} }

View file

@ -0,0 +1,11 @@
{
services.home-assistant = {
enable = true;
extraComponents = [
# Components required to complete the onboarding
"esphome"
"met"
"radio_browser"
];
config = {
# Includes dependencies for a basic setup