22 lines
288 B
Nix
22 lines
288 B
Nix
{
|
|
config,
|
|
lib,
|
|
namespace,
|
|
...
|
|
}:
|
|
with lib;
|
|
let
|
|
cfg = config.${namespace}.services.home-assistant;
|
|
in
|
|
{
|
|
config = mkIf cfg.enable {
|
|
services = {
|
|
esphome = {
|
|
enable = true;
|
|
openFirewall = true; # 6052
|
|
address = "0.0.0.0";
|
|
};
|
|
};
|
|
};
|
|
}
|