Files
nixos/modules/environments/home-assistant/default.nix
T

24 lines
348 B
Nix

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