28 lines
588 B
Nix
28 lines
588 B
Nix
{ 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 = {};
|
|
|
|
};
|
|
};
|
|
};
|
|
}
|