blob: 23b91607d29b1cd8afbdc0face47e11f71bb8869 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
|
{ config, lib, pkgs, ... }:
with lib; let
cfg = config.local.home-assistant;
in
{
options.local.home-assistant = {
enable = mkEnableOption "home-assistant";
};
config = mkIf cfg.enable {
local.boot.impermanence.directories = [
{ directory = "/var/lib/hass"; user = "hass"; group = "hass"; mode = "u=rwx,g=,o="; }
];
services.home-assistant = {
enable = true;
extraComponents = [
"met"
"google_translate"
"radio_browser"
"xiaomi_miio"
];
config = {
# Includes dependencies for a basic setup
# https://www.home-assistant.io/integrations/default_config/
default_config = { };
};
customComponents = with pkgs.home-assistant-custom-components; [
xiaomi_miot
];
};
};
}
|