32 lines
694 B
Nix
32 lines
694 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"
|
|
"jellyfin"
|
|
"nextcloud"
|
|
"ollama"
|
|
"pi_hole"
|
|
];
|
|
|
|
config = {
|
|
|
|
default_config = {};
|
|
|
|
};
|
|
};
|
|
};
|
|
}
|