feat: Homeassistant
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
# manages home automations
|
||||
{
|
||||
config,
|
||||
lib,
|
||||
pkgs,
|
||||
...
|
||||
}:
|
||||
let
|
||||
cfg = config.my.profiles.homeassistant;
|
||||
in
|
||||
{
|
||||
options.my.profiles.homeassistant = with lib; {
|
||||
enable = mkEnableOption "Home Automation";
|
||||
|
||||
};
|
||||
|
||||
config = lib.mkIf cfg.enable {
|
||||
services.homeassistant = {
|
||||
enable = true;
|
||||
openFirewall = true;
|
||||
};
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user