2024-03-17 22:43:11 +01:00
|
|
|
{ inputs, outputs, lib, pkgs, config, ... }:
|
|
|
|
{
|
|
|
|
environment.systemPackages = with pkgs; [
|
|
|
|
];
|
|
|
|
|
|
|
|
nixpkgs.config.permittedInsecurePackages = [
|
|
|
|
"openssl-1.1.1w"
|
|
|
|
];
|
|
|
|
|
|
|
|
services.home-assistant = {
|
|
|
|
enable = true;
|
|
|
|
extraComponents = [
|
|
|
|
# Components required to complete the onboarding
|
|
|
|
"esphome"
|
|
|
|
"met"
|
|
|
|
"radio_browser"
|
2024-04-13 12:37:24 +02:00
|
|
|
"tuya"
|
2024-03-17 22:43:11 +01:00
|
|
|
];
|
|
|
|
config = {
|
|
|
|
# Includes dependencies for a basic setup
|
|
|
|
# https://www.home-assistant.io/integrations/default_config/
|
2024-04-13 12:37:24 +02:00
|
|
|
default_config = { };
|
|
|
|
mobile_app = { };
|
|
|
|
map = { };
|
2024-03-17 22:43:11 +01:00
|
|
|
};
|
|
|
|
};
|
2024-04-13 12:37:24 +02:00
|
|
|
|
|
|
|
networking.firewall =
|
|
|
|
lib.pipe
|
|
|
|
[ "TCP" "UDP" ]
|
|
|
|
[
|
|
|
|
(builtins.map
|
|
|
|
(protocol:
|
|
|
|
lib.nameValuePair
|
|
|
|
"allowed${protocol}Ports"
|
|
|
|
[ 8123 ]))
|
|
|
|
builtins.listToAttrs
|
|
|
|
];
|
2024-03-17 22:43:11 +01:00
|
|
|
}
|