switched to flakes and built out modularity
This commit is contained in:
27
modules/services/homeassistant.nix
Normal file
27
modules/services/homeassistant.nix
Normal file
@@ -0,0 +1,27 @@
|
||||
{ config, lib, ... }:
|
||||
|
||||
let
|
||||
cfg = config.control.homeassistant;
|
||||
in
|
||||
{
|
||||
config = lib.mkIf cfg.enable {
|
||||
services.home-assistant = {
|
||||
enable = true;
|
||||
|
||||
extraComponents = [
|
||||
"analytics"
|
||||
"google_translate"
|
||||
"met"
|
||||
"radio_browser"
|
||||
"shopping_list"
|
||||
"isal"
|
||||
];
|
||||
|
||||
config = {
|
||||
default_config = {};
|
||||
};
|
||||
};
|
||||
|
||||
networking.firewall.allowedTCPPorts = [ 8123 ];
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user