added homeassistant
This commit is contained in:
27
system-config/services/homeassistant/default.nix
Normal file
27
system-config/services/homeassistant/default.nix
Normal 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 = {};
|
||||
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user