53 lines
1.2 KiB
Nix
53 lines
1.2 KiB
Nix
{ config, lib, pkgs, ... }:
|
|
{
|
|
services.home-assistant = {
|
|
enable = false;
|
|
openFirewall = true;
|
|
configWritable = true; # remove after setup
|
|
configDir = "/var/lib/hass";
|
|
config = {
|
|
lovelace.mode = "yaml";
|
|
server_port = 8123;
|
|
server_host = [
|
|
"0.0.0.0"
|
|
"::"
|
|
];
|
|
homeassistant = {
|
|
name = "Norumbega";
|
|
unit_system = "metric";
|
|
temperature_unit = "C";
|
|
longitude = 18.52;
|
|
lattitude = 73.85;
|
|
};
|
|
};
|
|
extraComponents = [
|
|
"analytics"
|
|
"default_config"
|
|
"esphome"
|
|
"met"
|
|
];
|
|
customComponents = with pkgs.home-assistant-custom-components; [
|
|
prometheus_sensor
|
|
];
|
|
lovelaceConfigWritable = true; # remove once setup
|
|
lovelaceConfig = {
|
|
title = "My Awesome Home";
|
|
views = [
|
|
{
|
|
title = "Example";
|
|
cards = [
|
|
{
|
|
type = "markdown";
|
|
title = "Lovelace";
|
|
content = "Welcome to your **Lovelace UI**.";
|
|
}
|
|
];
|
|
}
|
|
];
|
|
};
|
|
customLovelaceModules = with pkgs.home-assistant-custom-lovelace-modules; [
|
|
mini-graph-card
|
|
mini-media-player
|
|
];
|
|
};
|
|
}
|