summaryrefslogtreecommitdiff
path: root/sys/home-assistant/yaml-extra.nix
blob: 77d1ed287c8441242cdce0a2b04a6f31799f3dee (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
{lib, ...}:
with lib; {
  options.services.home-assistant = {
    config = mkOption {
      type = with lib.types;
        nullOr (submodule {
          options = {
            http = {
              use_x_forwarded_for = mkOption {
                type = nullOr bool;
                default = null;
              };

              trusted_proxies = mkOption {
                type = nullOr (either str (listOf str));
                default = null;
              };
            };
          };
        });
    };
  };
}