nix-config/modules/nixos/programs/home-assistant/extensions/wyoming.nix

11 lines
273 B
Nix

{...}: {
flake.nixosModules.home-assistant-wyoming = {
lib,
config,
...
}:
lib.mkIf (config.services.home-assistant.extensions.wyoming.enable) {
services.home-assistant.extraComponents = ["wyoming"];
services.wyoming.enable = true;
};
}