added homeassistant

This commit is contained in:
2024-11-24 17:32:48 -06:00
parent 56daf6efb9
commit dc488cc9e5
5 changed files with 56 additions and 16 deletions

View File

@@ -0,0 +1,27 @@
{ config, lib, ... }: {
options.sysconfig.opts.homeassistant.enable = lib.mkOption {
type = lib.types.bool;
default = false;
};
config = lib.mkIf config.sysconfig.opts.homeassistant.enable {
services.home-assistant = {
enable = true;
configDir = "/ssd1/Home-Assistant/data";
extraComponents = [
"esphome"
"met"
"radio_browser"
];
config = {
default_config = {};
};
};
};
}