28 lines
439 B
Nix
28 lines
439 B
Nix
{ config, lib, ... }:
|
|
|
|
let
|
|
cfg = config.control.homeassistant;
|
|
in
|
|
{
|
|
config = lib.mkIf cfg.enable {
|
|
services.home-assistant = {
|
|
enable = true;
|
|
|
|
extraComponents = [
|
|
"analytics"
|
|
"google_translate"
|
|
"met"
|
|
"radio_browser"
|
|
"shopping_list"
|
|
"isal"
|
|
];
|
|
|
|
config = {
|
|
default_config = {};
|
|
};
|
|
};
|
|
|
|
networking.firewall.allowedTCPPorts = [ 8123 ];
|
|
};
|
|
}
|