This commit is contained in:
Lilith 2026-01-14 01:43:43 +01:00
parent 11f90d871d
commit 02caf378fe
No known key found for this signature in database
GPG key ID: 272C807BD91F8446

View file

@ -1,13 +1,5 @@
{ lib, config, ... }:
{
options.server.home-assistant.enable = lib.mkEnableOption "Enable home-assistant";
config = lib.mkIf config.server.home-assistant.enable {
networking.firewall.allowedTCPPorts = [
8123
5683
];
imports = [
./zones.nix
./mosquitto.nix
@ -16,6 +8,14 @@
./heating.nix
];
options.server.home-assistant.enable = lib.mkEnableOption "Enable home-assistant";
config = lib.mkIf config.server.home-assistant.enable {
networking.firewall.allowedTCPPorts = [
8123
5683
];
services.home-assistant = {
enable = true;