Files
nixos/modules/environments/home-assistant/default.nix
T
2026-01-08 16:22:24 +01:00

24 lines
345 B
Nix

# manages home automations
{
config,
lib,
pkgs,
...
}:
let
cfg = config.my.profiles.homeassistant;
in
{
options.my.profiles.homeassistant = with lib; {
enable = mkEnableOption "Home Automation";
};
config = lib.mkIf cfg.enable {
services.homeassistant = {
enable = true;
openFirewall = true;
};
};
}